Skip to content

Commit cfefee2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bf1fc8a commit cfefee2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pytorch_lightning/trainer/connectors/checkpoint_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from pytorch_lightning.utilities.cloud_io import atomic_save, get_filesystem
2727
from pytorch_lightning.utilities.exceptions import MisconfigurationException
2828
from pytorch_lightning.utilities.imports import _fault_tolerant_training
29-
from pytorch_lightning.utilities.types import _PATH
3029
from pytorch_lightning.utilities.migration import pl_legacy_patch
30+
from pytorch_lightning.utilities.types import _PATH
3131
from pytorch_lightning.utilities.upgrade_checkpoint import KEYS_MAPPING as DEPRECATED_CHECKPOINT_KEYS
3232

3333
if _OMEGACONF_AVAILABLE:

pytorch_lightning/utilities/migration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818

1919

2020
class 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

0 commit comments

Comments
 (0)