Skip to content

Commit

Permalink
Update train_imagenet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lengstrom authored Jan 29, 2022
1 parent f134cbf commit 607d117
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions train_imagenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,6 @@ def train_loop(self, epoch, log_level):
iterator.set_description(msg)
### Logging end

if log_level > 0:
loss = ch.stack(losses).mean().cpu()
assert not ch.isnan(loss), 'Loss is NaN!'
return loss.item()

@param('validation.lr_tta')
def val_loop(self, lr_tta):
model = self.model
Expand Down

0 comments on commit 607d117

Please sign in to comment.