Skip to content

Implement gradient of SVD #56

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

Closed
ricardoV94 opened this issue Nov 29, 2022 · 0 comments · Fixed by #614
Closed

Implement gradient of SVD #56

ricardoV94 opened this issue Nov 29, 2022 · 0 comments · Fixed by #614
Labels
enhancement New feature or request gradients

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Nov 29, 2022

Please describe the purpose of filing this issue

Would be a nice addition

import pytensor.tensor as pt
x = pt.matrix("x")
y = pt.linalg.svd(x, compute_uv=False)
y_grad = pt.grad(y.sum(), x)  # NotImplementedError

Some code can be found in old Theano issues:

More context in aesara-devs/aesara#836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gradients
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant