Skip to content

Commit

Permalink
Update src/sparseml/pytorch/torchvision/train.py
Browse files Browse the repository at this point in the history
Co-authored-by: corey-nm <109536191+corey-nm@users.noreply.github.com>
  • Loading branch information
rahul-tuli and corey-nm committed Jan 11, 2023
1 parent 6be8dd8 commit 2f7cacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparseml/pytorch/torchvision/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def train_one_epoch(
module=model,
optimizer=optimizer,
epoch=epoch,
steps_per_epoch=len(data_loader),
steps_per_epoch=len(data_loader) / accum_steps,
student_outputs=outputs,
student_inputs=image,
)
Expand Down

0 comments on commit 2f7cacb

Please sign in to comment.