File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/lightning/pytorch/core Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ def log(
405
405
The default behavior per hook is documented here: :ref:`extensions/logging:Automatic Logging`.
406
406
407
407
Args:
408
- name: key to log.
408
+ name: key to log. Must be identical across all processes if using DDP or any other distributed strategy.
409
409
value: value to log. Can be a ``float``, ``Tensor``, or a ``Metric``.
410
410
prog_bar: if ``True`` logs to the progress bar.
411
411
logger: if ``True`` logs to the logger.
@@ -569,6 +569,7 @@ def log_dict(
569
569
570
570
Args:
571
571
dictionary: key value pairs.
572
+ Keys must be identical across all processes if using DDP or any other distributed strategy.
572
573
The values can be a ``float``, ``Tensor``, ``Metric``, or ``MetricCollection``.
573
574
prog_bar: if ``True`` logs to the progress base.
574
575
logger: if ``True`` logs to the logger.
You can’t perform that action at this time.
0 commit comments