Skip to content

Commit

Permalink
bugfix, set loss
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Jan 11, 2023
1 parent 2b2af45 commit 735956e
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 @@ -91,7 +91,7 @@ def train_one_epoch(

if steps_accumulated % args.gradient_accum_steps == 0:
if manager is not None:
manager.loss_update(
loss = manager.loss_update(
loss=loss,
module=model,
optimizer=optimizer,
Expand Down

0 comments on commit 735956e

Please sign in to comment.