TensorStorageCheckpointer¶
- class torchrl.data.replay_buffers.TensorStorageCheckpointer[source]¶
A storage checkpointer for TensorStorages.
This class supports TensorDict-based storages as well as pytrees.
This class will call save and load hooks if provided. These hooks should take as input the data being transformed as well as the path where the data should be saved.