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 3a3f872 commit 0ec4be4Copy full SHA for 0ec4be4
pytorch_lightning/core/lightning.py
@@ -179,7 +179,11 @@ def forward(self, x):
179
180
"""
181
if self.trainer.is_global_zero:
182
- print(*args, **kwargs)
+ progress_bar = self.trainer.progress_bar_callback
183
+ if progress_bar is not None and progress_bar.is_enabled:
184
+ progress_bar.print(*args, **kwargs)
185
+ else:
186
+ print(*args, **kwargs)
187
188
def log(
189
self,
0 commit comments