Skip to content

Commit 90e01ef

Browse files
author
Etay Livne
committed
fix: CometLogger now correctly identifies when to create new Experiment object
1 parent 98005bb commit 90e01ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/loggers/comet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def experiment(self) -> Union["Experiment", "ExistingExperiment", "OfflineExperi
268268
self.logger.experiment.some_comet_function()
269269
270270
"""
271-
if self._experiment is not None:
271+
if self._experiment is not None and self.experiment.alive:
272272
return self._experiment
273273

274274
if self._future_experiment_key is not None:

0 commit comments

Comments
 (0)