We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4433921 commit 006703dCopy full SHA for 006703d
pytorch_lightning/core/lightning.py
@@ -170,7 +170,11 @@ def forward(self, x):
170
171
"""
172
if self.trainer.is_global_zero:
173
- print(*args, **kwargs)
+ progress_bar = self.trainer.progress_bar_callback
174
+ if progress_bar is not None and progress_bar.is_enabled:
175
+ progress_bar.print(*args, **kwargs)
176
+ else:
177
+ print(*args, **kwargs)
178
179
def log(
180
self,
0 commit comments