Skip to content

Commit 9d9ba18

Browse files
committed
update
1 parent 638e8a8 commit 9d9ba18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/tuner/batch_size_scaling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def _run_binsearch_scaling(
315315
f"Applying margin of {margin:.1%}, reducing batch size from {new_size} to {margin_reduced_size}"
316316
)
317317
new_size = margin_reduced_size
318-
# update attribute in the model/datamodule as well
318+
# propagate the reduced batch size to the model/datamodule attribute
319319
lightning_setattr(trainer.lightning_module, batch_arg_name, new_size)
320320

321321
return new_size

0 commit comments

Comments
 (0)