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

Propagate zero derivative indicator #63

Closed
dfdx opened this issue May 29, 2020 · 2 comments
Closed

Propagate zero derivative indicator #63

dfdx opened this issue May 29, 2020 · 2 comments

Comments

@dfdx
Copy link
Owner

dfdx commented May 29, 2020

Motivating example is RNN which returns a tuple of (last_hidden, all_hiddens), but usually only one of these is actually used in further computations. In such settings, gradient w.r.t. to non-target element of the tuple can be replaced with some kind of symbolic zero instead of actually allocated object.

@oxinabox
Copy link
Contributor

oxinabox commented Aug 6, 2020

This is one of the reasions ChainRulesCore has AbstractZero and its subtypes.

@dfdx
Copy link
Owner Author

dfdx commented Aug 7, 2020

Yep! Again, it's already integrated in #70, this issue will be closed as soon as that PR is merged.

@dfdx dfdx closed this as completed Aug 8, 2020
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