Skip to content

Add notice about cupy.array_api removal#8750

Merged
asi1024 merged 1 commit intocupy:mainfrom
kmaehashi:add-array-api-removal
Nov 18, 2024
Merged

Add notice about cupy.array_api removal#8750
asi1024 merged 1 commit intocupy:mainfrom
kmaehashi:add-array-api-removal

Conversation

@kmaehashi
Copy link
Copy Markdown
Member

@kmaehashi kmaehashi commented Nov 17, 2024

context: #8470 (comment).

Closes #8470 and #8747.

cc/ @leofang

Copy link
Copy Markdown

@Saransh-cpp Saransh-cpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this in! I am not aware of the features going into CuPy v14, but should this say v2.1? NumPy started supporting Array API 2023.12 from v2.1. Please ignore if v2 is the right version here.


.. note::
``cupy.array_api`` will be removed in CuPy v14 because its NumPy counterpart ``numpy.array_api`` has been removed.
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2 API.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2 API.
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2.1 API.


.. note::
``cupy.array_api`` will be removed in CuPy v14 because its NumPy counterpart ``numpy.array_api`` has been removed.
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2 API.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2 API.
The root module ``cupy.*`` is now compatible with the Array API specification as it mirrors the NumPy v2.1 API.

@leofang
Copy link
Copy Markdown
Member

leofang commented Nov 17, 2024

No, supporting array API has been one of the goals of NumPy 2(.0), and it's been delivered
https://numpy.org/doc/stable/release/2.0.0-notes.html#highlights

@kmaehashi kmaehashi added cat:document Documentation to-be-backported Pull-requests to be backported to stable branch prio:medium labels Nov 18, 2024
@asi1024 asi1024 merged commit ca993c7 into cupy:main Nov 18, 2024
chainer-ci pushed a commit to chainer-ci/cupy that referenced this pull request Nov 18, 2024
Add notice about `cupy.array_api` removal
@kmaehashi kmaehashi deleted the add-array-api-removal branch November 18, 2024 08:17
@kmaehashi kmaehashi added this to the v14.0.0a1 milestone Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:document Documentation prio:medium to-be-backported Pull-requests to be backported to stable branch

Projects

None yet

4 participants