TensorDictRoundRobinWriter
-
class torchrl.data.replay_buffers.TensorDictRoundRobinWriter(compilable: bool = False)[source]
A RoundRobin Writer class for composable, tensordict-based replay buffers.
-
add(data: Any) → int | Tensor[source]
Inserts one piece of data at an appropriate index, and returns that index.
-
extend(data: Sequence) → Tensor[source]
Inserts a series of data points at appropriate indices, and returns a tensor containing the indices.