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

Questions about gradient values #4

Open
shaoyangxu opened this issue May 15, 2022 · 0 comments
Open

Questions about gradient values #4

shaoyangxu opened this issue May 15, 2022 · 0 comments

Comments

@shaoyangxu
Copy link

shaoyangxu commented May 15, 2022

Hello, i found the grad matrix(grad = weight.grad) has many non-zero elements while their corresponding values in weight matrix are zero, I want to ask why this happen(as a beginner of pytorch)? Thanks!

partial gradient matrix:
image

partial weight matrix:
image

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

1 participant