Repository navigation
ENH: Adding MLX - #1008
ENH: Adding MLX#1008prady0t wants to merge 8 commits into
Conversation
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
| class _MLXNamespaceInfo: | ||
| def __init__(self, info: object) -> None: | ||
| self._info = info | ||
|
|
||
| def __getattr__(self, name: str) -> object: | ||
| return getattr(self._info, name) | ||
|
|
||
| def default_dtypes(self, *, device: object = None) -> object: | ||
| _ = device | ||
| return self._info.default_dtypes() # type: ignore[attr-defined] |
There was a problem hiding this comment.
Most of the changes in these files should be in array-api-compat
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@lucascolley @ev-br Would love some reviews. The gigantic diff is mostly from the pixi lock file. |
|
For me, a description would be helpful. What is the goal and what is the plan towards it? |
|
Hi, sorry for the delay. Here's the info: We want MLX support for the extra library. To do that, we need the tests inside
To increase support, I asked AI to create a compatibility layer; that code exists in Some of the tests (Such as boolean indexing, complex128 dtype tests) are skipped as they are not supported by MLX. |
Reference issue
Closes #1006
What does this implement/fix?
Additional information
AI Generation Disclosure
GitHub Copilot was used to generate changes in
_compat.pyfile