You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MLX compatibility: Constants, Datatypes and Array Attributes #451
Hi, its still work in progress, I am planning on making sub-issues for them and reference them on the tracking issue, I am still working on this issue investigating test failures etc, once done link this to main tracker issue and continue to do same with methods and functions in the future :)
changed the title [-]MLX compatibility: constants, Datatypes and Array Attributes[/-][+]MLX compatibility: Constants, Datatypes and Array Attributes[/+]on Jul 18, 2026
Hi, the .T follows the numpy convention of reversing the axes and I dont think they will be open for restricting it to 2D arrays as it will be back breaking like numpy
Hi, I updated the table with new pr's that got merged, I noticed that recently the __true_divide or divide in general started failing, maybe I had missed it before so I marked it as failing and will work on new fixes soon :)
edit: it fails for the numerically large complex 64 numbers
Thanks for the great effort @aaishwarymishra ! Agreed this can be closed as completed. WDYT about other MLX-related issues here, are they still useful/actionable?
If MLX maintainers are open to having open issues in the MLX tracker, then yes that'd be ideal. No idea if they are.
In this repository, I think six open issues are a bit much; maybe prune them? However, if you keep working on MLX support and some of issues here are useful to you, then great.
The canonical representation of the MLX support of Array API is I think upstream: https://github.com/ml-explore/mlx/tree/main/python/tests/xp-tests
20. If MLX maintainers are open to having open issues in the MLX tracker, then yes that'd be ideal. No idea if they are.
In this repository, I think six open issues are a bit much; maybe prune them? However, if you keep working on MLX support and some of issues here are useful to you, then great.
The canonical representation of the MLX support of Array API is I think upstream: https://github.com/ml-explore/mlx/tree/main/python/tests/xp-tests
Hi, @zcbenz do you think we can port these issues to MLX?
Activity
aaishwarymishra commentedon Jul 18, 2026
DataTypes
Note: In reporting.py we have
While running tests all the test failed because this method was being called at each test and the main problem is if the
ois of the typeNoneMlLX throws an exception for equality like
We either have to modify the method to something like
or try to reach out to mlx team for the fix
aaishwarymishra commentedon Jul 18, 2026
Array Attributes
Tarray.Tarray_api_tests/test_array_object.pydevicearray_api_tests/test_array_object.pydeviceattributedtypearray.dtypearray_api_tests/test_array_object.pymTarray_api_tests/test_array_object.pyndimarray.ndimarray_api_tests/test_array_object.pyshapearray.shapearray_api_tests/test_array_object.pysizearray.sizearray_api_tests/test_array_object.pyArray Methods and Operators
__abs__array.__abs__array_api_tests/test_operators_and_elementwise_functions.py__add__array.__add__array_api_tests/test_operators_and_elementwise_functions.py__and__array.__and__array_api_tests/test_operators_and_elementwise_functions.py__array_namespace__array.__array_namespace__array_api_tests/test_array_object.py__bool__array.__bool__array_api_tests/test_array_object.py__complex__array.__complex__array_api_tests/test_array_object.py__dlpack__array.__dlpack__array_api_tests/test_array_object.py__dlpack_device__array.__dlpack_device__array_api_tests/test_array_object.py__eq__array.__eq__array_api_tests/test_operators_and_elementwise_functions.py__float__array.__float__array_api_tests/test_array_object.py__floordiv__array.__floordiv__array_api_tests/test_operators_and_elementwise_functions.py__ge__array.__ge__array_api_tests/test_operators_and_elementwise_functions.py__getitem__array.__getitem__array_api_tests/test_array_object.py__gt__array.__gt__array_api_tests/test_operators_and_elementwise_functions.py__index__array.__index__array_api_tests/test_array_object.py__int__array.__int__array_api_tests/test_array_object.py__invert__array.__invert__array_api_tests/test_operators_and_elementwise_functions.py__le__array.__le__array_api_tests/test_operators_and_elementwise_functions.py__lshift__array.__lshift__array_api_tests/test_operators_and_elementwise_functions.py__lt__array.__lt__array_api_tests/test_operators_and_elementwise_functions.py__matmul__array.__matmul__array_api_tests/test_operators_and_elementwise_functions.py__mod__array.__mod__array_api_tests/test_operators_and_elementwise_functions.py__mul__array.__mul__array_api_tests/test_operators_and_elementwise_functions.py__ne__array.__ne__array_api_tests/test_operators_and_elementwise_functions.py__neg__array.__neg__array_api_tests/test_operators_and_elementwise_functions.py__or__array.__or__array_api_tests/test_operators_and_elementwise_functions.py__pos__array.__pos__array_api_tests/test_operators_and_elementwise_functions.py__pow__array.__pow__array_api_tests/test_operators_and_elementwise_functions.py__rshift__array.__rshift__array_api_tests/test_operators_and_elementwise_functions.py__setitem__array.__setitem__array_api_tests/test_array_object.py__sub__array.__sub__array_api_tests/test_operators_and_elementwise_functions.py__truediv__array.__truediv__array_api_tests/test_operators_and_elementwise_functions.py__xor__array.__xor__array_api_tests/test_operators_and_elementwise_functions.pyto_devicearray_api_tests/test_array_object.pyto_device()ev-br commentedon Jul 18, 2026
Great. what about functions from the spec?
aaishwarymishra commentedon Jul 18, 2026
Hi, its still work in progress, I am planning on making sub-issues for them and reference them on the tracking issue, I am still working on this issue investigating test failures etc, once done link this to main tracker issue and continue to do same with methods and functions in the future :)
aaishwarymishra commentedon Jul 18, 2026
2 unique failures in
array_api_tests/test_array_object.py:TypeError: float() argument must be a string or a real number, not 'complex'when usedcomplexon them.Other failures were because of missing array attributes like no
__index__and nofloat64support on the gpu[-]MLX compatibility: constants[/-][+]MLX compatibility: constants, Datatypes and Array Attributes[/+][-]MLX compatibility: constants, Datatypes and Array Attributes[/-][+]MLX compatibility: Constants, Datatypes and Array Attributes[/+]ev-br commentedon Aug 14, 2026
Out of array object attributes,
__index__,__pos__andmTseem to be small additions likely to be accepted upstream;aaishwarymishra commentedon Aug 25, 2026
Hi, the
.Tfollows the numpy convention of reversing the axes and I dont think they will be open for restricting it to 2D arrays as it will be back breaking like numpyaaishwarymishra commentedon Oct 5, 2026
Hi, I updated the table with new pr's that got merged, I noticed that recently the __true_divide or divide in general started failing, maybe I had missed it before so I marked it as failing and will work on new fixes soon :)
edit: it fails for the numerically large complex 64 numbers
aaishwarymishra commentedon Oct 29, 2026
@ev-br do you think this issue can be closed? I have fixed all the fixable items I could.
ev-br commentedon Oct 29, 2026
Thanks for the great effort @aaishwarymishra ! Agreed this can be closed as completed. WDYT about other MLX-related issues here, are they still useful/actionable?
aaishwarymishra commentedon Oct 29, 2026
it's up to you, maybe we can move the to MLX themselves what you suggest? I do update the issues regularly after fixing an issue here.
ev-br commentedon Oct 30, 2026
If MLX maintainers are open to having open issues in the MLX tracker, then yes that'd be ideal. No idea if they are.
In this repository, I think six open issues are a bit much; maybe prune them? However, if you keep working on MLX support and some of issues here are useful to you, then great.
The canonical representation of the MLX support of Array API is I think upstream: https://github.com/ml-explore/mlx/tree/main/python/tests/xp-tests
aaishwarymishra commentedon Oct 30, 2026
Hi, @zcbenz do you think we can port these issues to MLX?
zcbenz commentedon Oct 31, 2026
I'm good having one master issue in MLX. For tracking todo work I think the xfail/skips files usually do a better job than having multiple issues.
aaishwarymishra commentedon Nov 3, 2026
Sure I will make an PR on MLX :)