Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Add more test cases #45

Merged
merged 16 commits into from
Jan 29, 2022
Prev Previous commit
Next Next commit
update: PCGrad
  • Loading branch information
kozistr committed Jan 29, 2022
commit 09148a71374b1c5f0b47eed7b61f4e4ea0f5dce3
2 changes: 1 addition & 1 deletion pytorch_optimizer/pcgrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def pack_grad(self, objectives: Iterable[nn.Module]):
return grads, shapes, has_grads

def project_conflicting(self, grads, has_grads) -> torch.Tensor:
"""
"""project conflicting
:param grads: a list of the gradient of the parameters
:param has_grads: a list of mask represent whether the parameter has gradient
:return:
Expand Down