JSONCheckpointAdapter#
- class torchrl.checkpoint.JSONCheckpointAdapter[source]#
Adapter for JSON-compatible configuration, metrics, and metadata.
Mutable mappings and lists are updated in place during restoration. Other values are returned through
CheckpointLoadResult.values.Examples
>>> from torchrl.checkpoint import JSONCheckpointAdapter >>> JSONCheckpointAdapter().adapter_id 'torchrl.json'