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 9ab1eb4 commit 3d3323dCopy full SHA for 3d3323d
src/lightning/pytorch/callbacks/weight_averaging.py
@@ -387,7 +387,7 @@ def __init__(
387
self.update_starting_at_step = update_starting_at_step
388
self.update_starting_at_epoch = update_starting_at_epoch
389
390
- def should_update(self, step_idx: Optional[int] = None, epoch_idx: Optional[int] = None) -> False:
+ def should_update(self, step_idx: Optional[int] = None, epoch_idx: Optional[int] = None) -> bool:
391
"""Decide when to update the model weights.
392
393
Args:
0 commit comments