ray.rllib.utils.replay_buffers.replay_buffer.ReplayBuffer.add
ray.rllib.utils.replay_buffers.replay_buffer.ReplayBuffer.add#
- ReplayBuffer.add(batch: Union[SampleBatch, MultiAgentBatch], **kwargs) None[source]#
Adds a batch of experiences or other data to this buffer.
Splits batch into chunks of timesteps, sequences or episodes, depending on
self._storage_unit. Callsself._add_single_batchto add resulting slices to the buffer storage.- Parameters
batch – The batch to add.
**kwargs – Forward compatibility kwargs.