Skip to content

Commit 9441df3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad6752a commit 9441df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source-pytorch/common/progress_bar.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ You can update ``refresh_rate`` (rate (number of batches) at which the progress
3636
3737
trainer = Trainer(callbacks=[TQDMProgressBar(refresh_rate=10)])
3838
39-
.. note::
39+
.. note::
4040

4141
The ``smoothing`` option has no effect when using the default implementation of :class:`~lightning.pytorch.callbacks.TQDMProgressBar`, as the progress bar is updated using the ``bar.refresh()`` method instead of ``bar.update()``. This can cause the progress bar to become desynchronized with the actual progress. To avoid this issue, you can use the ``bar.update()`` method instead, but this may require customizing the :class:`~lightning.pytorch.callbacks.TQDMProgressBar` class.
42-
42+
4343
By default the training progress bar is reset (overwritten) at each new epoch.
4444
If you wish for a new progress bar to be displayed at the end of every epoch, set
4545
:paramref:`TQDMProgressBar.leave <lightning.pytorch.callbacks.TQDMProgressBar.leave>` to ``True``.

0 commit comments

Comments
 (0)