Example #1
0
 def remote(self, *args, **kwargs):
     return ray.call_remote(self, ray_client_pb2.ClientTask.METHOD, *args,
                            **kwargs)
Example #2
0
 def remote(self, *args, **kwargs):
     return ray.call_remote(self, ray_client_pb2.ClientTask.FUNCTION, *args,
                            **kwargs)
Example #3
0
 def remote(self, *args, **kwargs):
     # Actually instantiate the actor
     ref = ray.call_remote(self, ray_client_pb2.ClientTask.ACTOR, *args,
                           **kwargs)
     return ClientActorHandle(ref, self)
Example #4
0
 def remote(self, *args, **kwargs):
     if self._raylet_remote_func is not None:
         return self._raylet_remote_func.remote(*args, **kwargs)
     return ray.call_remote(self, *args, **kwargs)
Example #5
0
 def remote(self, *args, **kwargs):
     return ray.call_remote(self, *args, **kwargs)
Example #6
0
 def remote(self, *args, **kwargs):
     ref_ids = ray.call_remote(self, *args, **kwargs)
     assert len(ref_ids) == 1
     return ClientActorHandle(ClientActorRef(ref_ids[0]))
Example #7
0
 def remote(self, *args, **kwargs) -> "ClientActorHandle":
     # Actually instantiate the actor
     ref_ids = ray.call_remote(self, *args, **kwargs)
     assert len(ref_ids) == 1
     return ClientActorHandle(ClientActorRef(ref_ids[0]))
Example #8
0
 def remote(self, *args, **kwargs):
     # Actually instantiate the actor
     ref = ray.call_remote(self, *args, **kwargs)
     return ClientActorHandle(ClientActorRef(ref.id, ref.handle), self)
Example #9
0
 def remote(self, *args, **kwargs):
     return ClientObjectRef(ray.call_remote(self, *args, **kwargs))
Example #10
0
 def remote(self, *args, **kwargs) -> "ClientActorHandle":
     # Actually instantiate the actor
     ref_id = ray.call_remote(self, *args, **kwargs)
     return ClientActorHandle(ClientActorRef(ref_id), self)