TorchCheckpointIO¶
- class lightning.pytorch.plugins.io.TorchCheckpointIO[소스]¶
기반 클래스:
lightning.fabric.plugins.io.checkpoint_io.CheckpointIO
CheckpointIO 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 forfsspec
remote loading of files.- 매개변수
Returns: The loaded checkpoint.
- 예외 발생
FileNotFoundError – If
path
is not found by thefsspec
filesystem- 반환 형식