Skip to content

Commit

Permalink
Update optimizers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bichengying committed May 18, 2020
1 parent 5e09594 commit 8ed5721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluefog/torch/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def __init__(self, params, named_parameters):

def _register_hooks(self):
for param_group in self.param_groups:
for p in param_group["params"]: # Is hook function blocking or not?
for p in param_group["params"]:
if p.requires_grad:
p.register_hook(self._make_hook(p))

Expand Down

0 comments on commit 8ed5721

Please sign in to comment.