-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22818 from jakevdp:finalize-array-api
PiperOrigin-RevId: 658500983
- Loading branch information
Showing
18 changed files
with
128 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
``jax.experimental.array_api`` module | ||
===================================== | ||
|
||
.. automodule:: jax.experimental.array_api | ||
.. note:: | ||
The ``jax.experimental.array_api`` module is deprecated as of JAX v0.4.32, and | ||
importing ``jax.experimental.array_api`` is no longer necessary. {mod}`jax.numpy` | ||
implements the array API standard directly by default. See :ref:`python-array-api` | ||
for details. | ||
|
||
This module includes experimental JAX support for the `Python array API standard`_. | ||
Support for this is currently experimental and not fully complete. | ||
|
||
Example Usage:: | ||
|
||
>>> from jax.experimental import array_api as xp | ||
|
||
>>> xp.__array_api_version__ | ||
'2023.12' | ||
|
||
>>> arr = xp.arange(1000) | ||
|
||
>>> arr.sum() | ||
Array(499500, dtype=int32) | ||
|
||
The ``xp`` namespace is the array API compliant analog of :mod:`jax.numpy`, | ||
and implements most of the API listed in the standard. | ||
|
||
.. _Python array API standard: https://data-apis.org/array-api/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.