ActorMethod#
- class ray.actor.ActorMethod(actor: ActorHandle, method_name: str, num_returns: int | Literal['streaming'] | None, max_task_retries: int, retry_exceptions: bool | list | tuple, is_generator: bool, generator_backpressure_num_objects: int, num_objects_per_yield: int, enable_task_events: bool, decorator: Callable | None = None, signature: List[Parameter] | None = None, tensor_transport: str | None = None)[source]#
Bases:
objectA class used to invoke an actor method.
Note: This class should not be instantiated directly. Instead, it should only be used as a return value from the
@ray.methoddecorator.Methods
Initialize an ActorMethod.
Bind arguments to the actor method for Ray DAG building.
Convenience method for executing an actor method call with options.
Call this actor method remotely with the given arguments.