CheckpointAdapter#
- class torchrl.checkpoint.CheckpointAdapter[source]#
Interface used to save and restore one checkpoint component.
Adapters receive a real local directory even when the outer checkpoint is an archive. Custom adapters can therefore write any number of files without depending on the container implementation.
Examples
>>> from torchrl.checkpoint import CheckpointAdapter >>> issubclass(CheckpointAdapter, object) True