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 c111f25 commit bf6b17dCopy full SHA for bf6b17d
src/lightning/pytorch/loops/evaluation_loop.py
@@ -267,7 +267,9 @@ def increment_progress_to_evaluation_end(self) -> None:
267
if self.skip:
268
return
269
self.reset()
270
- max_batch = max(self.max_batches)
+ max_batch = int(max(self.max_batches))
271
+ if max_batch == -1:
272
+ return
273
self.batch_progress.increment_by(max_batch, True)
274
275
def on_run_start(self) -> None:
src/lightning/pytorch/loops/progress.py
@@ -189,7 +189,6 @@ def reset_on_run(self) -> None:
189
def reset_on_restart(self) -> None:
190
self.current.reset_on_restart()
191
192
- @override
193
def increment_by(self, n: int) -> None:
194
self.total.increment_by(n)
195
self.current.increment_by(n)
0 commit comments