reference/generated/torchrl.data.replay_buffers.ImmutableDatasetWriter
Run in Google Colab
Colab
Download Notebook
Notebook
View on GitHub
GitHub
ImmutableDatasetWriter
-
class torchrl.data.replay_buffers.ImmutableDatasetWriter[source]
A blocking writer for immutable datasets.
-
add(data: Any) → int[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.