ray.rllib.evaluation.rollout_worker.RolloutWorker.apply#

RolloutWorker.apply(func: Callable[[Any, Optional[Any], Optional[Any]], ray.rllib.utils.typing.T], *args, **kwargs) ray.rllib.utils.typing.T#

Calls the given function with this rollout worker instance.

A generic interface for applying arbitray member functions on a remote actor.

Parameters
  • func – The function to call, with this RolloutWorker as first argument, followed by args, and kwargs.

  • args – Optional additional args to pass to the function call.

  • kwargs – Optional additional kwargs to pass to the function call.

Returns

The return value of the function call.

DeveloperAPI: This API may change across minor Ray releases.