Update optimizers.py (#1383)
This commit is contained in:
parent
495ffbd028
commit
09668df726
|
@ -50,7 +50,7 @@ class TrainerOptimizersMixin(ABC):
|
||||||
]
|
]
|
||||||
# take only freq wif exists and ot they are defined - not None
|
# take only freq wif exists and ot they are defined - not None
|
||||||
optimizer_frequencies = [
|
optimizer_frequencies = [
|
||||||
opt_dict["frequency"] for opt_dict in optim_conf if opt_dict.get("frequency")
|
opt_dict["frequency"] for opt_dict in optim_conf if opt_dict.get("frequency") is not None
|
||||||
]
|
]
|
||||||
|
|
||||||
# clean scheduler list
|
# clean scheduler list
|
||||||
|
|
Loading…
Reference in New Issue