Skip to content

Commit 86a7375

Browse files
authored
docs: enhance hint for epoch-level logging
1 parent 3eb05bf commit 86a7375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/pages/lightning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Additionally, we highly recommend that the two ways of logging are not mixed as
151151
logits = self(x)
152152
...
153153
self.valid_acc.update(logits, y)
154-
self.log('valid_acc', self.valid_acc, on_step=True, on_epoch=True)
154+
self.log('valid_acc', self.valid_acc, on_step=False, on_epoch=True)
155155

156156
In general if you are logging multiple metrics we highly recommend that you combine them into a single metric object
157157
using the :class:`~torchmetrics.MetricCollection` class and then replacing the ``self.log`` calls with ``self.log_dict``,

0 commit comments

Comments
 (0)