Skip to content

Commit 2c2b138

Browse files
pre-commit-ci[bot]milesial
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9d92a4a commit 2c2b138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytorch_lightning/core/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ def lr_scheduler_step(self, scheduler, optimizer_idx, metric):
16501650
16511651
"""
16521652
optimizer = self.trainer.optimizers[optimizer_idx]
1653-
if hasattr(optimizer, '_step_count') and optimizer._step_count <= 0:
1653+
if hasattr(optimizer, "_step_count") and optimizer._step_count <= 0:
16541654
return
16551655

16561656
if metric is None:

0 commit comments

Comments
 (0)