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

Why is gradient orthogonaly projected with 0_n matrix? #12

Open
dcwil opened this issue May 11, 2022 · 1 comment
Open

Why is gradient orthogonaly projected with 0_n matrix? #12

dcwil opened this issue May 11, 2022 · 1 comment

Comments

@dcwil
Copy link

dcwil commented May 11, 2022

In lines:

p.data.fill_(0)
trans = orthogonal_projection(p.grad.data, p.data)
p.grad.data.fill_(0).add_(trans)

Weight matrix (p.data) is set to 0 before computing the orthogonal projection with it's gradient, why is this the case?

@a912289748
Copy link

而且你这个学习率为什么没有加上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants