Skip to content

Commit

Permalink
fix resnet examples (#7899)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCaoG committed Aug 22, 2024
1 parent ae28308 commit df1f994
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/train_resnet_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def step_fn(self, data, target):
loss = self.loss_fn(output, target)
loss.backward()
self.run_optimizer()
return loss

def train_loop_fn(self, loader, epoch):
tracker = xm.RateTracker()
Expand Down

0 comments on commit df1f994

Please sign in to comment.