Skip to content

Commit

Permalink
refactor(lr scheduler): Change for adapting new argument structure
Browse files Browse the repository at this point in the history
  • Loading branch information
KarhouTam committed Sep 25, 2024
1 parent e7f6450 commit 55c73ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/fedavg.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
self.lr_scheduler_cls = None
if lr_scheduler_cls is not None:
self.lr_scheduler_cls = lr_scheduler_cls
self.lr_scheduler = lr_scheduler_cls(optimizer=self.optimizer)
self.lr_scheduler = self.lr_scheduler_cls(optimizer=self.optimizer)
self.init_lr_scheduler_state = deepcopy(self.lr_scheduler.state_dict())

# [{"train": [...], "val": [...], "test": [...]}, ...]
Expand Down

0 comments on commit 55c73ed

Please sign in to comment.