Skip to content

Commit ecdda57

Browse files
committed
feat(wandb): more explicit warning
1 parent 24a3fcd commit ecdda57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytorch_lightning/loggers/wandb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def log_metrics(self, metrics: Dict[str, float], step: Optional[int] = None) ->
166166
metrics = self._add_prefix(metrics)
167167
if self._sync_step and step is not None and step + self._step_offset < self.experiment.step:
168168
self.warning_cache.warn(
169-
'Trying to log at a previous step. Use `sync_step=False` or try logging with `commit=False` when calling manually `wandb.log`.')
169+
'Trying to log at a previous step. '
170+
'Use `WandbLogger(sync_step=False)` or try logging with `commit=False` when calling manually `wandb.log`.')
170171
if self._sync_step:
171172
self.experiment.log(metrics, step=(step + self._step_offset) if step is not None else None)
172173
elif step is not None:

0 commit comments

Comments
 (0)