mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 22:37:36 +08:00
Add entries to in-memory store on Put() (#7085)
This commit is contained in:
@@ -235,3 +235,15 @@ class RemoteSignal:
|
||||
|
||||
def wait(self):
|
||||
ray.get(self.signal_actor.wait.remote())
|
||||
|
||||
|
||||
@ray.remote
|
||||
def _put(obj):
|
||||
return obj
|
||||
|
||||
|
||||
def put_object(obj, use_ray_put):
|
||||
if use_ray_put:
|
||||
return ray.put(obj)
|
||||
else:
|
||||
return _put.remote(obj)
|
||||
|
||||
Reference in New Issue
Block a user