ray.rllib.utils.replay_buffers.replay_buffer.ReplayBuffer.apply#

ReplayBuffer.apply(func: Callable[[Any, Any | None, Any | None], T], *args, _ray_trace_ctx=None, **kwargs) T#

Calls the given function with this Actor 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.