We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537cc20 commit 4130973Copy full SHA for 4130973
lightning_module.py
@@ -114,7 +114,7 @@ def configure_optimizers(self):
114
)
115
116
if self.config.get("max_steps", None):
117
- max_iter = min(self.config.max_steps, max_iter)
+ max_iter = min(self.config.max_steps, max_iter) if max_iter is not None else self.config.max_steps
118
119
assert max_iter is not None
120
optimizer = torch.optim.Adam(self.parameters(), lr=self.config.lr)
0 commit comments