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

Bug in gradient of fft.rfft #969

Closed
ricardoV94 opened this issue Aug 12, 2024 · 0 comments · Fixed by #979
Closed

Bug in gradient of fft.rfft #969

ricardoV94 opened this issue Aug 12, 2024 · 0 comments · Fixed by #979
Labels
bug Something isn't working gradients

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Aug 12, 2024

Description

Reported in https://discourse.pymc.io/t/cannot-drop-a-non-broadcastable-dimension-and-rfft/14920

import pytensor.tensor as pt
from pytensor.tensor import fft

p = pt.vector("p", shape=(4,))
out = fft.rfft(p[None, :])
pt.grad(out.sum(), p)   # Cannot drop a non-broadcastable dimension: (False, False), [1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gradients
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant