mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-10 12:21:57 +08:00
Update optimizers.py (#1383)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user