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

Refine backward no_grad_var handling #7153

Closed
JiayiFeng opened this issue Jan 3, 2018 · 0 comments · Fixed by #7140
Closed

Refine backward no_grad_var handling #7153

JiayiFeng opened this issue Jan 3, 2018 · 0 comments · Fixed by #7140
Assignees

Comments

@JiayiFeng
Copy link
Collaborator

If all the gradient inputs of some grad_op are marked as no_gradient, which means all of them can be considered as zeros. For grad_ops are in essence the propagation of gradients, all the outputs are definitely zeros when all gradient inputs are zeros. Therefore the grad_op can also be skipped.

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

Successfully merging a pull request may close this issue.

1 participant