Skip to content

Commit

Permalink
Minor Fix AGC
Browse files Browse the repository at this point in the history
  • Loading branch information
vballoli committed Feb 15, 2021
1 parent 071f713 commit 49d23aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nfnets/agc.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ def step(self, closure=None):
torch.tensor(1e-6).to(grad_norm.device)))
p.grad.data.copy_(torch.where(trigger, clipped_grad, p.grad))

self.optim.step(closure)
return self.optim.step(closure)

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'nfnets-pytorch',
packages = find_packages(),
version = '0.0.3',
version = '0.0.4',
license='MIT',
description = 'NFNets, PyTorch',
author = 'Vaibhav Balloli',
Expand Down

0 comments on commit 49d23aa

Please sign in to comment.