Skip to content

Commit 3d3323d

Browse files
authored
Update weight_averaging.py
1 parent 9ab1eb4 commit 3d3323d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/callbacks/weight_averaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __init__(
387387
self.update_starting_at_step = update_starting_at_step
388388
self.update_starting_at_epoch = update_starting_at_epoch
389389

390-
def should_update(self, step_idx: Optional[int] = None, epoch_idx: Optional[int] = None) -> False:
390+
def should_update(self, step_idx: Optional[int] = None, epoch_idx: Optional[int] = None) -> bool:
391391
"""Decide when to update the model weights.
392392
393393
Args:

0 commit comments

Comments
 (0)