You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Documentation Fixes
Just did some scanning for errors. Fixed indentation spelling, and grammar changes.
* Apply suggestions from code review
Co-authored-by: Rohit Gupta <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/logging.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Use the :func:`~~pytorch_lightning.core.lightning.LightningModule.log` method to
66
66
deftraining_step(self, batch, batch_idx):
67
67
self.log('my_metric', x)
68
68
69
-
Depending on where log is called from, Lightning auto-determines the correct logging mode for you.\
69
+
Depending on where log is called from, Lightning auto-determines the correct logging mode for you.\
70
70
But of course you can override the default behavior by manually setting the :func:`~~pytorch_lightning.core.lightning.LightningModule.log` parameters.
71
71
72
72
.. code-block:: python
@@ -76,16 +76,16 @@ But of course you can override the default behavior by manually setting the :fun
76
76
77
77
The :func:`~~pytorch_lightning.core.lightning.LightningModule.log` method has a few options:
78
78
79
-
* on_step: Logs the metric at the current step. Defaults to True in :func:`~~pytorch_lightning.core.lightning.LightningModule.training_step`, and :func:`~pytorch_lightning.core.lightning.LightningModule.training_step_end`.
79
+
* `on_step`: Logs the metric at the current step. Defaults to `True` in :func:`~~pytorch_lightning.core.lightning.LightningModule.training_step`, and :func:`~pytorch_lightning.core.lightning.LightningModule.training_step_end`.
80
80
81
-
* on_epoch: Automatically accumulates and logs at the end of the epoch. Defaults to True anywhere in validation or test loops, and in :func:`~~pytorch_lightning.core.lightning.LightningModule.training_epoch_end`.
81
+
* `on_epoch`: Automatically accumulates and logs at the end of the epoch. Defaults to True anywhere in validation or test loops, and in :func:`~~pytorch_lightning.core.lightning.LightningModule.training_epoch_end`.
82
82
83
-
* prog_bar: Logs to the progress bar.
83
+
* `prog_bar`: Logs to the progress bar.
84
84
85
-
* logger: Logs to the logger like Tensorboard, or any other custom logger passed to the :class:`~pytorch_lightning.trainer.trainer.Trainer`.
85
+
* `logger`: Logs to the logger like Tensorboard, or any other custom logger passed to the :class:`~pytorch_lightning.trainer.trainer.Trainer`.
86
86
87
87
88
-
.. note:: Setting on_epoch=True will accumulate your logged values over the full training epoch.
88
+
.. note:: Setting `on_epoch=True` will accumulate your logged values over the full training epoch.
0 commit comments