-
Notifications
You must be signed in to change notification settings - Fork 24.8k
[MPS] Extend torch.special.sinc
to complex
#146648
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/146648
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 35 PendingAs of commit baf3cd6 with merge base 49082f9 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot merge -f "MPS + lint are green" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
And to integral data types as well Was too lazy to deduce the formula myself(or write a sympy script), but ChatGPT did a decent job of doing it, though it forgot that input must be multiplied by $$\pi$$: ```math \text{Re}\left(\text{sinc}(x + i y)\right) = \frac{\sin(x)\cosh(y) x - \cos(x)\sinh(y) y}{x^2 + y^2} ``` ```math \text{Im}\left(\text{sinc}(x + i y)\right) = \frac{\cos(x)\sinh(y) x + \sin(x)\cosh(y) y}{x^2 + y^2} ``` Pull Request resolved: #146648 Approved by: https://github.com/dcci
And integral dtypes Was too lazy to deduce the formula myself(or write a sympy script), but ChatGPT did a decent job of doing it, though it forgot that input must be multiplied by pi ghstack-source-id: bff4157 Pull Request resolved: pytorch/pytorch#146648
Stack from ghstack (oldest at bottom):
torch.special.sinc
to complex #146648And to integral data types as well
Was too lazy to deduce the formula myself(or write a sympy script), but ChatGPT did a decent job of doing it, though it forgot that input must be multiplied by$$\pi$$ :