Skip to content

Commit

Permalink
reverted change
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoroller committed Jul 29, 2024
1 parent 42a95a5 commit 3e3051a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/torchsurv/loss/momentum.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def infer(self, inputs: torch.Tensor) -> torch.Tensor:
[ 0.9771, -0.8513]])
"""
with self.target.eval(): # notify all your layers that you are in eval mode
return self.target(inputs)
self.target.eval() # notify all your layers that you are in eval mode
return self.target(inputs)

def _bank_loss(self) -> torch.Tensor:
"""computer the negative loss likelyhood from memory bank"""
Expand Down

0 comments on commit 3e3051a

Please sign in to comment.