Skip to content

Commit

Permalink
🐛 Fix lr scale #59
Browse files Browse the repository at this point in the history
Co-authored-by: hanruisong00 <[email protected]>
Co-authored-by: Adrien Lafage <[email protected]>
  • Loading branch information
3 people committed Oct 27, 2023
1 parent 5e67064 commit d6df25c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch_uncertainty/routines/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ def training_step(
else:
loss = self.criterion(logits, targets, self.current_epoch)

# compensate for mean on the estimators
loss *= self.num_estimators

self.log("train_loss", loss)
return loss

Expand Down

0 comments on commit d6df25c

Please sign in to comment.