Rate this Page

Writer#

class torchrl.data.replay_buffers.Writer(compilable: bool = False)[source]#

A ReplayBuffer base Writer class.

abstract add(data: Any) int[source]#

Inserts one piece of data at an appropriate index, and returns that index.

abstract extend(data: Sequence) Tensor[source]#

Inserts a series of data points at appropriate indices, and returns a tensor containing the indices.