-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: exp and log cast float16 to float32 #13493
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
Comments
Looks like an unintended change. @r-devulap @mattip Thoughts? Maybe we need some tests... |
Adding tests and looking for a fix |
Looking into it .. |
I am sure you already got it, but it will be because of the linear search of the loops, if the "f,f->f" loops are registered first, they are found instead of the "e,e->e" loops. |
Sorry for the spam. (compare also |
I thought changing the type to |
Got it, need to not use simd on 'e' which makes sense |
that was quick! thank you @mattip :) |
After #13134 is merged,
np.exp
andnp.log
return float32 arrays for float16 inputs. Is the change intended? I could not find docs for it (https://www.numpy.org/devdocs/reference/generated/numpy.exp.html), while it is documented thatnp.sum
casts ints to the default platform integer.Reproducing code example:
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: