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

Implement Prod.R_Op #5798

Open
lamblin opened this issue Mar 31, 2017 · 0 comments
Open

Implement Prod.R_Op #5798

lamblin opened this issue Mar 31, 2017 · 0 comments

Comments

@lamblin
Copy link
Member

lamblin commented Mar 31, 2017

I think it can be implemented by taking the L_Op with an output grad of 1, to get the Jacobian in a compact form, and then doing an elemwise mul with the evaluation point, then summing over the same axes as the original prod.

Using L_Op would make it possible to benefit from the special-casing of 0 that we already to with ProdWithoutZeros.

The mul-sum could also be replaced by a dot or tensordot, but it could be complex to set up depending on the reduction axes.

Reported in #5792.

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

No branches or pull requests

1 participant