TensorDictRoundRobinWriter¶
- class torchrl.data.replay_buffers.TensorDictRoundRobinWriter(**kw)[source]¶
A RoundRobin Writer class for composable, tensordict-based replay buffers.
- add(data: Any) int | torch.Tensor [source]¶
Inserts one piece of data at an appropriate index, and returns that index.