Skip to content

Commit

Permalink
[fix] remove image_size from call to rescale_gradient_accumulation (#202
Browse files Browse the repository at this point in the history
) (#204)

#200 included a side change to remove the now unused `image_size` arg from the function signature but did not update the call site.

this PR fixes that.

**test_plan:**
Reproduced reported error with a sample quantization recipe and verified this PR resolves it
  • Loading branch information
bfineran authored Apr 17, 2023
1 parent 7c8d7b9 commit b01dd74
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def _create_dataloaders():
new_batch_size, new_accumulate = sparsification_manager.rescale_gradient_accumulation(
batch_size=batch_size,
accumulate=accumulate,
image_size=imgsz
)
if new_batch_size != batch_size:
batch_size = new_batch_size
Expand Down

0 comments on commit b01dd74

Please sign in to comment.