def remote(self, *args, **kwargs): ref_ids = ray.call_remote(self, *args, **kwargs) assert len(ref_ids) == 1 actor_class = None if isinstance(self.remote_stub, ClientActorClass): actor_class = self.remote_stub return ClientActorHandle(ClientActorRef(ref_ids[0]), actor_class=actor_class)
def remote(self, *args, **kwargs): self._remote_stub._init_signature.bind(*args, **kwargs) futures = ray.call_remote(self, *args, **kwargs) assert len(futures) == 1 actor_class = None if isinstance(self._remote_stub, ClientActorClass): actor_class = self._remote_stub return ClientActorHandle(ClientActorRef(futures[0]), actor_class=actor_class)
def remote(self, *args, **kwargs): return return_refs(ray.call_remote(self, *args, **kwargs))
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]), actor_class=self)
def remote(self, *args, **kwargs): self._remote_stub._signature.bind(*args, **kwargs) return return_refs(ray.call_remote(self, *args, **kwargs))
def remote(self, *args, **kwargs) -> "ClientActorHandle": self._init_signature.bind(*args, **kwargs) # Actually instantiate the actor futures = ray.call_remote(self, *args, **kwargs) assert len(futures) == 1 return ClientActorHandle(ClientActorRef(futures[0]), actor_class=self)
def remote(self, *args, **kwargs): # Check if supplied parameters match the function signature. Same case # at the other callsites. self._signature.bind(*args, **kwargs) return return_refs(ray.call_remote(self, *args, **kwargs))
def remote(self, *args, **kwargs): ref_ids = ray.call_remote(self, *args, **kwargs) assert len(ref_ids) == 1 return ClientActorHandle(ClientActorRef(ref_ids[0]))