Update optimizers.py (#1383)

This commit is contained in:
Asaf Manor 2020-04-07 16:09:23 +03:00 committed by GitHub
parent 495ffbd028
commit 09668df726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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