Optimizers.scheduler_step() bug fix (#2352)

optimizer bug fix
This commit is contained in:
James Gardner authored and GitHub committed 2023-08-18 09:01:50 -07:00
1 parent 1b430590c8
commit cba8d22d3b
1 file changed
+1 -1
+1 -1
View File
@@ -108,7 +108,7 @@ class Optimizers:
Args:
param_group_name: name of scheduler to step forward
"""
if self.config.param_group_name.scheduler: # type: ignore
if "scheduler" in self.config[param_group_name]:
self.schedulers[param_group_name].step()
def zero_grad_all(self) -> None: