Loading state_dict of dual_schedulers
Closed this issue · 1 comments
juan43ramirez commented
Bug
The instantiation of the dual_scheduler
inside ConstrainedOptimizer.load_from_state_dict
method has a bug. The variable containing the dual scheduler class is called dual_scheduler_class
as opposed to dual_scheduler
.
cooper/cooper/constrained_optimizer.py
Line 491 in f75dff3
Steps
Replace current line to dual_scheduler = dual_scheduler_class(dual_optimizer)
Expected behavior
This should enable the loading of a dual_scheduler
from a checkpoint.
juan43ramirez commented
Closed by #44