Skip to content

Commit

Permalink
Merge pull request #31 from khaledkah/khaledkah-patch-1
Browse files Browse the repository at this point in the history
Update callbacks.py
  • Loading branch information
khaledkah authored Jul 9, 2024
2 parents 8f84b85 + 916ae11 commit ebde24d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/morered/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def save_outputs(

# check if loss is exploding
if (
key not in outputs or
(outputs[key] > self.loss_threshold).any()
key not in outputs
or (outputs[key] > self.loss_threshold).any()
or torch.isnan(outputs[key]).any()
or torch.isinf(outputs[key]).any()
):
Expand Down

0 comments on commit ebde24d

Please sign in to comment.