We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cupy.logaddexp()
For this case, mathematically we should get inf, but CuPy returns nan:
inf
nan
>>> np.logaddexp(np.inf, np.inf) inf >>> >>> cp.logaddexp(np.inf, np.inf) array(nan)
The reason is in0-in1 gives nan when both are inf, and it propagates all the way out:
in0-in1
cupy/cupy/_math/explog.py
Line 73 in 4469fae
The text was updated successfully, but these errors were encountered:
Note: this relates to the test_indexing.py failure seen in #5698 (comment).
test_indexing.py
Sorry, something went wrong.
logaddexp
logaddexp2
takagi
Successfully merging a pull request may close this issue.
For this case, mathematically we should get
inf
, but CuPy returnsnan
:The reason is
in0-in1
givesnan
when both areinf
, and it propagates all the way out:cupy/cupy/_math/explog.py
Line 73 in 4469fae
The text was updated successfully, but these errors were encountered: