ray.rllib.utils.replay_buffers.prioritized_replay_buffer.PrioritizedReplayBuffer.apply
ray.rllib.utils.replay_buffers.prioritized_replay_buffer.PrioritizedReplayBuffer.apply#
- PrioritizedReplayBuffer.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.