ml-explore/mlx

[BUG] Missing `array-api` methods

已关闭

#3,484 创建于 2026年5月5日

 (3 条评论) (2 个反应) (0 位负责人)C++ (1,794 个派生)batch import
enhancementgood first issuepython

仓库指标

星标
 (26,216 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 75 个 PR)

描述

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

贡献者指南