We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663e736 commit 7837037Copy full SHA for 7837037
src/lightning/pytorch/tuner/lr_finder.py
@@ -281,8 +281,8 @@ def _lr_find(
281
# Update results across ranks
282
lr_finder.results = trainer.strategy.broadcast(lr_finder.results)
283
lr_finder_finished = True
284
- except Exception as e:
285
- raise e
+ except Exception as ex:
+ raise ex
286
finally:
287
# Restore initial state of model (this will also restore the original optimizer state)
288
trainer._checkpoint_connector.restore(ckpt_path)
0 commit comments