ray.actor.ActorMethod#

class ray.actor.ActorMethod(actor, method_name, num_returns: int | Literal['streaming'] | None, max_task_retries: int, retry_exceptions: bool | list | tuple, is_generator: bool, generator_backpressure_num_objects: int, enable_task_events: bool, decorator=None, signature: List[Parameter] | None = None, tensor_transport: Literal[ray.core.generated.common_pb2.OBJECT_STORE, ray.core.generated.common_pb2.NCCL, ray.core.generated.common_pb2.GLOO] | None = None)[source]#

A 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.method decorator.

Methods

__init__

Initialize an ActorMethod.

bind

Bind arguments to the actor method for Ray DAG building.

options

Convenience method for executing an actor method call with options.