Skip to content

Commit

Permalink
Major bug fix: AGC
Browse files Browse the repository at this point in the history
  • Loading branch information
vballoli authored Mar 3, 2021
1 parent 1513cea commit 184a4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfnets/agc.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, params, optim: optim.Optimizer, clipping: float = 1e-2, eps:
if module_name not in names:
raise ModuleNotFoundError(
"Module name {} not found in the model".format(module_name))
parameters = [{"params": module.parameters()} for name,
params = [{"params": module.parameters()} for name,
module in model.named_modules() if name not in ignore_agc]

super(AGC, self).__init__(params, defaults)
Expand Down

0 comments on commit 184a4ef

Please sign in to comment.