-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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] torch.polygamma inconsistent with scipy.special.polygamma for n >= 1 #55357
Comments
For the case where n=1, are we computing the correct values? |
I am planning to verify that and fix this issue in separate PR once #51966 is in |
Sounds good. Next question: for n > 2 are we only divergent for inf or other extremals, or also for real values? |
Only the extremals. (However on ROCM we are divergent on real values as well) |
Reopening as #61641 was reverted. |
Reland happened |
The inconsistency between torch and scipy (+ the actual value of polygamma_1 at negative integers) seems to remain as of the latest release of torch and the latest nightly. @albanD Do you know why was this closed? Was there a decision to leave the current torch behavior in place, or is it just that no one remembered to reopen when the reland was reverted? (I'm assuming it was reverted, since I don't see any of the changes in the current codebase, and the polygamma behavior remains, at least for negative ints). Here's the commit I'm talking about: #62322 |
n = 1
n > 1
cc @mruberry
The text was updated successfully, but these errors were encountered: