Skip to content

Commit 3bb1fbc

Browse files
committed
pass online arg to ExperimentConfig
1 parent e882468 commit 3bb1fbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lightning/pytorch/loggers/comet.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ def __init__(
270270

271271
import comet_ml
272272

273-
self._comet_config = comet_ml.ExperimentConfig(**self._kwargs)
273+
config_kwargs = self._kwargs.copy()
274+
if online is False:
275+
config_kwargs["disabled"] = True
276+
self._comet_config = comet_ml.ExperimentConfig(**config_kwargs)
274277

275278
# create real experiment only on main node/process (when strategy=auto/ddp)
276279
if _get_rank() is not None and _get_rank() != 0:

0 commit comments

Comments
 (0)