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

Scalar DiffRules which use the output #23

Closed
willtebbutt opened this issue Aug 11, 2018 · 1 comment
Closed

Scalar DiffRules which use the output #23

willtebbutt opened this issue Aug 11, 2018 · 1 comment

Comments

@willtebbutt
Copy link
Member

willtebbutt commented Aug 11, 2018

Noting that stuff like

y = exp(x)
∂/∂x exp(x) = y

happens, it might make sense to augment the set of scalar diffrules with extra code that optionally allows a user to provide a symbol for the output of the call. This is potentially useful for forwards-mode and reverse-mode stuff. That said, I can imagine that a lot instances of this kind of thing might be possible to optimise away via a compiler pass, so maybe this isn't such a valuable thing to provide?

@willtebbutt
Copy link
Member Author

Now irrelevant because ChainRules.jl

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