Skip to content

Commit

Permalink
Fix AGC state, param_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
vballoli committed Apr 1, 2021
1 parent cf39041 commit 1d8ae87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nfnets/agc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def __init__(self, params, optim: optim.Optimizer, clipping: float = 1e-2, eps:
self.agc_params = params
self.eps = eps
self.clipping = clipping

self.param_groups = optim.param_groups
self.state = optim.state

#super(AGC, self).__init__([], defaults)

Expand Down

0 comments on commit 1d8ae87

Please sign in to comment.