Skip to content

Commit

Permalink
fix broken pytorch-lightning import (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Berenbaum authored Aug 16, 2023
1 parent a2cae20 commit 1aa3e05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dvclive/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
from pytorch_lightning.loggers.logger import Logger, rank_zero_experiment
from pytorch_lightning.utilities import rank_zero_only
from pytorch_lightning.utilities.logger import _scan_checkpoints

try:
from pytorch_lightning.utilities.logger import _scan_checkpoints
except ImportError:
from pytorch_lightning.loggers.utilities import _scan_checkpoints
from torch import is_tensor

from dvclive import Live
Expand Down

0 comments on commit 1aa3e05

Please sign in to comment.