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: incorrect promotion of scalars in logspace #24957
Comments
@seberg, thanks for the ping, do you know what the best fix might be? Seems like we need to avoid a call to |
At the moment the issue is the broadcasting and not the We should probably turn around the logic simply. Convert There is another little thing that Marten might complain about anyway, that this uses (May need another bit of thought, but hopefully it helps and if you think about it also and reach similar conclusions we are good). |
Closes numpygh-24957, although the handling of `dtype=` being passed in looks wrong, but that is a different issue.
Closes numpygh-24957, although the handling of `dtype=` being passed in looks wrong, but that is a different issue.
Closes numpygh-24957, although the handling of `dtype=` being passed in looks wrong, but that is a different issue.
Closes numpygh-24957, although the handling of `dtype=` being passed in looks wrong, but that is a different issue.
Leaving the 2.0.0 milestone for now since it's type promotion related, but this doesn't seem blocking. |
Fix in #25919. |
gh-23275 added broadcasting before the promotion happened, which is incorrect for 0-D objects as they may have special promotion rules (value-based or Python int/float/complex being special).
First reported at cupy/cupy#7946
Ping @byrdie since it was your PR.
The text was updated successfully, but these errors were encountered: