"git@developer.sourcefind.cn:OpenDAS/opencompass.git" did not exist on "cadab9474fc762ecec99287c2d381050c9e1c347"
Unverified Commit b95cbdf6 authored by 0x1355's avatar 0x1355 Committed by GitHub
Browse files

Set step_rules correctly for piecewise_constant scheduler (#3605)

So that schedule_func() calls get_piecewise_constant_schedule() with correctly named kwarg.
parent 7a396913
......@@ -318,7 +318,7 @@ def get_scheduler(
return schedule_func(optimizer, last_epoch=last_epoch)
if name == SchedulerType.PIECEWISE_CONSTANT:
return schedule_func(optimizer, rules=step_rules, last_epoch=last_epoch)
return schedule_func(optimizer, step_rules=step_rules, last_epoch=last_epoch)
# All other schedulers require `num_warmup_steps`
if num_warmup_steps is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment