File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2626from pytorch_lightning .utilities .cloud_io import atomic_save , get_filesystem
2727from pytorch_lightning .utilities .exceptions import MisconfigurationException
2828from pytorch_lightning .utilities .imports import _fault_tolerant_training
29- from pytorch_lightning .utilities .types import _PATH
3029from pytorch_lightning .utilities .migration import pl_legacy_patch
30+ from pytorch_lightning .utilities .types import _PATH
3131from pytorch_lightning .utilities .upgrade_checkpoint import KEYS_MAPPING as DEPRECATED_CHECKPOINT_KEYS
3232
3333if _OMEGACONF_AVAILABLE :
Original file line number Diff line number Diff line change 1818
1919
2020class pl_legacy_patch :
21- """
22- Registers legacy artifacts (classes, methods, etc.) that were removed but still need to be
23- included for unpickling old checkpoints. The following patches apply.
21+ """Registers legacy artifacts (classes, methods, etc.) that were removed but still need to be included for
22+ unpickling old checkpoints. The following patches apply.
2423
2524 1. ``pytorch_lightning.utilities.argparse._gpus_arg_default``: Applies to all checkpoints saved prior to
2625 version 1.2.8. See: https://github.com/PyTorchLightning/pytorch-lightning/pull/6898
You can’t perform that action at this time.
0 commit comments