ray.actor.ActorMethod.options#

ActorMethod.options(**options: Any)[source]#

Convenience method for executing an actor method call with options.

Same arguments as func._remote(), but returns a wrapped function that a non-underscore .remote() can be called on.

Examples

# The following two calls are equivalent. >>> actor.my_method._remote(args=[x, y], name=”foo”, num_returns=2) >>> actor.my_method.options(name=”foo”, num_returns=2).remote(x, y)

Parameters:

**options – Per-call option overrides forwarded to ._remote() (e.g. name, num_returns, tensor_transport).

Returns:

A wrapper exposing .remote() / .bind() that applies the given options when the method is invoked.