Update optimizers.py (#1383)

This commit is contained in:
Asaf Manor
2020-04-07 09:09:23 -04:00
committed by GitHub
parent 495ffbd028
commit 09668df726
+1 -1
View File
@@ -50,7 +50,7 @@ class TrainerOptimizersMixin(ABC):
]
# take only freq wif exists and ot they are defined - not None
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