mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
Update optimizers.py (#1383)
This commit is contained in:
1 parent
495ffbd028
commit
09668df726
1 file changed
+1
-1
@@ -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