Skip to content

Commit

Permalink
user shceduler itself to update model parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
smilesun committed Nov 2, 2023
1 parent d605670 commit 1af128b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion domainlab/algos/trainers/train_fbopt_b.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def set_model_with_mu(self):
"""
set model multipliers
"""
self.model.hyper_update(epoch=None, fun_scheduler=HyperSetter(self.hyper_scheduler.mmu))
# self.model.hyper_update(epoch=None, fun_scheduler=HyperSetter(self.hyper_scheduler.mmu))
self.model.hyper_update(epoch=None, fun_scheduler=self.hyper_scheduler)

def tr_epoch(self, epoch, flag_info=False):
"""
Expand Down

0 comments on commit 1af128b

Please sign in to comment.