mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[docs] Add get_actor
as top level API (#15484)
This commit is contained in:
parent
15da948214
commit
86cd358f1e
2 changed files with 12 additions and 3 deletions
|
@ -64,6 +64,14 @@ ray.cancel
|
|||
|
||||
.. autofunction:: ray.cancel
|
||||
|
||||
.. _ray-get_actor-ref:
|
||||
|
||||
|
||||
ray.get_actor
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. autofunction:: ray.get_actor
|
||||
|
||||
.. _ray-get_gpu_ids-ref:
|
||||
|
||||
ray.get_gpu_ids
|
||||
|
|
|
@ -1614,10 +1614,11 @@ def wait(object_refs, *, num_returns=1, timeout=None, fetch_local=True):
|
|||
|
||||
@client_mode_hook
|
||||
def get_actor(name):
|
||||
"""Get a handle to a detached actor.
|
||||
"""Get a handle to a named actor.
|
||||
|
||||
Gets a handle to a detached actor with the given name. The actor must
|
||||
have been created with Actor.options(name="name").remote().
|
||||
Gets a handle to an actor with the given name. The actor must
|
||||
have been created with Actor.options(name="name").remote(). This
|
||||
works for both detached & non-detached actors.
|
||||
|
||||
Returns:
|
||||
ActorHandle to the actor.
|
||||
|
|
Loading…
Add table
Reference in a new issue