Skip to content

Commit 1686aab

Browse files
author
Sean Naren
authored
Only enable pulse for infinite datasets (#10305)
1 parent 373c32e commit 1686aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/callbacks/progress/rich_progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def render(self, task: "Task") -> ProgressBar:
3737
total=max(0, task.total),
3838
completed=max(0, task.completed),
3939
width=None if self.bar_width is None else max(1, self.bar_width),
40-
pulse=not task.started or math.isfinite(task.remaining),
40+
pulse=not task.started or not math.isfinite(task.remaining),
4141
animation_time=task.get_time(),
4242
style=self.style,
4343
complete_style=self.complete_style,

0 commit comments

Comments
 (0)