aitune.torch.checkpoint.storage
Storage abstract base class.
Module Contents
Classes
API
Base class to save/load state dict.
load_tasks
save_tasks
Get the target folder path.
Parameters:
path
The folder or a checkpoint file.
Returns: Path
The target folder path.
Load a state dictionary from the specified path.
Parameters:
path
The path from where the state dictionary should be loaded- either a directory or a checkpoint file.
Returns: dict
The loaded state dictionary.
Save the state dictionary to the specified path.
Parameters:
path
The path where the state dictionary should be saved - either a directory or a checkpoint file.
state_dict
The state dictionary to save.