TorchCheckpointIO¶
- class lightning.pytorch.plugins.io.TorchCheckpointIO[소스]¶
기반 클래스:
lightning.fabric.plugins.io.checkpoint_io.CheckpointIOCheckpointIO that utilizes
torch.save()andtorch.load()to save and load checkpoints respectively, common for most use cases.경고
This is an experimental feature.
- load_checkpoint(path, map_location=<function TorchCheckpointIO.<lambda>>)[소스]¶
Loads checkpoint using
torch.load(), with additional handling forfsspecremote loading of files.- 매개변수
Returns: The loaded checkpoint.
- 예외 발생
FileNotFoundError – If
pathis not found by thefsspecfilesystem- 반환 형식