ml-explore/mlx

[BUG] Missing `array-api` methods

Geschlossen

#3.484 geöffnet am 05.05.2026

 (3 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C++ (1.794 Forks)batch import
enhancementgood first issuepython

Repository-Metriken

Stars
 (26.216 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (75 gemergte PRs in 30 T)

Beschreibung

Describe the bug The current array-api implementation is currently missing a few methods

To Reproduce

from_dlpack:

import mlx.core as mx

mx.array([[0, 1], [2, 3]]).__array_namespace__().from_dlpack

as_array(..., copy=...):

import mlx.core as mx

mx.array([[0, 1], [2, 3]]).__array_namespace__().asarray(mx.array([[0, 1], [2, 3]]), copy=True)

Expected behavior I would expect the above to work. I assume there are others as well.

Desktop (please complete the following information):

  • OS Version: 15.1 (24B83)
  • Version: 0.31.2

Additional context

Contributor Guide