[Bug]: ivy.vector_norm
and ivy.lgamma
when backend=numpy return rounded values
#28844
Open
1 of 4 tasks
Labels
Bug Report
Report bugs detected in Ivy.
Bug Explanation
https://data-apis.org/array-api/latest/extensions/generated/array_api.linalg.vector_norm.html
According to array-api, there is no specified behavior when a non-floating point type is given for
vector_norm
, but I would like to suggest, with all due respect, to stop this casting or to output an error, for the following reasons. (Forlgamma
, not even defined in array-api.)np.sin(1)
returns0.8414709848078965
instead of0
.ivy.astype(ivy.lgamma(x), dtype=x.dtype)
Thanks for this great project anyway.
Steps to Reproduce Bug
Environment
NixOS 24.05, Python 3.11
Ivy Version
1.0.0.1
Backend
Device
CPU
The text was updated successfully, but these errors were encountered: