Skip to content

Commit 663e736

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/tuner/batch_size_scaling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def _scale_batch_size(
8787
garbage_collection_cuda()
8888

8989
log.info(f"Finished batch size finder, will continue with full run using batch size {new_size}")
90-
except Exception as e:
91-
raise e
90+
except Exception as ex:
91+
raise ex
9292
finally:
9393
__scale_batch_restore_params(trainer, params)
9494

0 commit comments

Comments
 (0)