Skip to content

Support Array API #68618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
njzjz opened this issue Oct 10, 2024 · 1 comment
Open

Support Array API #68618

njzjz opened this issue Oct 10, 2024 · 1 comment
Assignees
Labels

Comments

@njzjz
Copy link

njzjz commented Oct 10, 2024

需求描述 Feature Description

Hi, I am wondering whether Paddle plans to support the Array API, so that array-consuming libraries are easier to switch between different array packages (NumPy, JAX, etc). For reference, Numpy and JAX have supported the Array API.

The API standard can be found here.

替代实现 Alternatives

If the main namespace cannot support the Array API, alternatively, create a separate module to support the Array API, like what array_api_compat.torch does.

@HydrogenSulfate
Copy link
Contributor

HydrogenSulfate commented Nov 21, 2024

Thank you for raising the issue. In fact, we are planning to integrate the array_API with the Paddle API. Due to some historical design and compatibility issues, we may not be able to directly integrate with the array_API like jax and numpy. Most likely, we can only achieve our goal by adding a layer of forwarding like PyTorch. Overall, our first phase(#69082) of work is nearing completion, and your suggestions will be carried out immediately after the second phase of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants