Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def remote(self, *args, **kwargs):
     return return_refs(ray.call_remote(self, *args, **kwargs))
Exemplo n.º 4
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]), actor_class=self)
Exemplo n.º 5
0
 def remote(self, *args, **kwargs):
     self._remote_stub._signature.bind(*args, **kwargs)
     return return_refs(ray.call_remote(self, *args, **kwargs))
Exemplo n.º 6
0
 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)
Exemplo n.º 7
0
 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))
Exemplo n.º 8
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]))