array-api-compat
array-api-compat copied to clipboard
Compatibility layer for common array libraries to support the Array API
According to v2022.12 (and v2023.12) of the array API standard, the special cases of `sign` include: > For real-valued operands... If x_i is NaN, the result is NaN. However, ```python3...
The first snippet provided in this comment https://github.com/pytorch/pytorch/issues/36748#issuecomment-1474368922 might help smooth support for torch in Array API consuming libraries such as scikit-learn without them having to maintain their own hacks...
This PR adds a compatibility layer for `sparse`.
This is a tracking issue for 2023.12 support in array-api-compat. The list of changes for 2023.12 is at https://data-apis.org/array-api/latest/changelog.html#v2023-12 Currently, we don't have test suite support for 2023.12 (https://github.com/data-apis/array-api-tests/issues/249), so...
Context adding LU factorization to the Array API spec: - https://github.com/data-apis/array-api/issues/627 Since `numpy.linalg.lu` does not exist yet (but `scipy.linalg.lu` does), @rgommers suggested working out an API candidate as part of...
Right now we have and support "cpu" as a device for all supported libraries in the to_device() helper. In particular, we allow `to_device(cupy_array, "cpu")` to convert a CuPy array to...
See #86 This should probably not be merged until https://github.com/data-apis/array-api/pull/741 is actually included in a released version of the standard (hopefully 2023.12) and supported by the numpy compat layer.
There's some failures relating to the expected dtype on older numpy versions.