ml-explore/mlx

[BUG] Missing `array-api` methods

Open

#3,484 建立於 2026年5月5日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)C++ (26,216 star) (1,794 fork)batch import
enhancementgood first issuepython

描述

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

貢獻者指南