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 638e8a8 commit 9d9ba18Copy full SHA for 9d9ba18
src/lightning/pytorch/tuner/batch_size_scaling.py
@@ -315,7 +315,7 @@ def _run_binsearch_scaling(
315
f"Applying margin of {margin:.1%}, reducing batch size from {new_size} to {margin_reduced_size}"
316
)
317
new_size = margin_reduced_size
318
- # update attribute in the model/datamodule as well
+ # propagate the reduced batch size to the model/datamodule attribute
319
lightning_setattr(trainer.lightning_module, batch_arg_name, new_size)
320
321
return new_size
0 commit comments