ImmutableDatasetWriter¶ class torchrl.data.replay_buffers.ImmutableDatasetWriter(compilable: bool = False)[源]¶ 不可變資料集的阻塞寫入器。 add(data: Any) → int[源]¶ 將一條資料插入到適當的索引,並返回該索引。 extend(data: Sequence) → Tensor[源]¶ 將一系列資料點插入到適當的索引,並返回包含這些索引的張量。