Skip to content

Commit 7837037

Browse files
SkafteNickiBorda
andauthored
Update src/lightning/pytorch/tuner/lr_finder.py
Co-authored-by: Jirka Borovec <[email protected]>
1 parent 663e736 commit 7837037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/tuner/lr_finder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ def _lr_find(
281281
# Update results across ranks
282282
lr_finder.results = trainer.strategy.broadcast(lr_finder.results)
283283
lr_finder_finished = True
284-
except Exception as e:
285-
raise e
284+
except Exception as ex:
285+
raise ex
286286
finally:
287287
# Restore initial state of model (this will also restore the original optimizer state)
288288
trainer._checkpoint_connector.restore(ckpt_path)

0 commit comments

Comments
 (0)