File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717this implementation for the default when working with NumPy arrays.
1818
1919"""
20- __version__ = '1.8 '
20+ __version__ = '1.9 '
2121
2222from .common import * # noqa: F401, F403
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ array_api_tests/test_special_cases.py::test_unary[floor(x_i is -0) -> -0]
161161array_api_tests/test_special_cases.py::test_unary[log1p(x_i is -0) -> -0]
162162array_api_tests/test_special_cases.py::test_unary[round(x_i is -0) -> -0]
163163array_api_tests/test_special_cases.py::test_unary[sin(x_i is -0) -> -0]
164+ array_api_tests/test_special_cases.py::test_unary[signbit(x_i is -0) -> True]
164165array_api_tests/test_special_cases.py::test_unary[sinh(x_i is -0) -> -0]
165166array_api_tests/test_special_cases.py::test_unary[sqrt(x_i is -0) -> -0]
166167array_api_tests/test_special_cases.py::test_unary[tan(x_i is -0) -> -0]
@@ -172,3 +173,10 @@ array_api_tests/test_special_cases.py::test_unary[trunc(x_i is -0) -> -0]
172173array_api_tests/test_fft.py::test_fftn
173174array_api_tests/test_fft.py::test_ifftn
174175array_api_tests/test_fft.py::test_rfftn
176+
177+ # 2023.12 support
178+ # cupy.ndaray cannot be specified as `repeats` argument.
179+ array_api_tests/test_manipulation_functions.py::test_repeat
180+ array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
181+ array_api_tests/test_signatures.py::test_func_signature[astype]
182+ array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.9 (2024-10-??)
4+
5+ ### Major Changes
6+
7+ - New helper functions to determine if a namespace is from a given library
8+ ({func}` ~.is_numpy_namespace ` , {func}` ~.is_torch_namespace ` , etc.).
9+
10+ - More support for the [ 2023.12 version of the
11+ standard] ( https://data-apis.org/array-api/latest/changelog.html#v2023-12 ) .
12+ This includes
13+ - Wrappers for ` cumulative_sum() ` .
14+ - Wrappers for ` unstack() ` .
15+ - Update floating-point type promotion in ` sum() ` , ` prod() ` , and ` trace() `
16+ to be inline with the 2023.12 specification (32-bit types no longer
17+ promote to 64-bit when ` dtype=None ` ).
18+ - Add the [ inspection
19+ APIs] ( https://data-apis.org/array-api/latest/API_specification/inspection.html )
20+ to the wrapped namespaces. These can be accessed with
21+ ` xp.__array_namespace_info__() ` .
22+ - Various fixes to the ` clip() ` wrappers.
23+
24+ - ` torch.conj ` now wrapps ` torch.conj_physical ` , which makes a copy rather
25+ than setting the conjugation bit, as arrays with the conjugation bit set do
26+ not support some APIs.
27+
28+ - ` torch.sign ` is now wrapped to support complex numbers and propogate nans
29+ properly.
30+
31+ ### Minor Changes
32+
33+ - Support for JAX 0.4.32 and newer which implements the array API directly in
34+ ` jax.numpy ` .
35+
36+ - ` hypot ` , ` minimum ` , and ` maximum ` (new in 2023.12) are wrapped in PyTorch to
37+ support proper scalar type promotion.
38+
339## 1.8 (2024-07-24)
440
541### Major Changes
Original file line number Diff line number Diff line change @@ -256,3 +256,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
256256array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
257257array_api_tests/test_signatures.py::test_func_signature[astype]
258258array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
259+ # uint64 repeats not supported
260+ array_api_tests/test_manipulation_functions.py::test_repeat
Original file line number Diff line number Diff line change @@ -51,3 +51,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
5151array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
5252array_api_tests/test_signatures.py::test_func_signature[astype]
5353array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
54+ # uint64 repeats not supported
55+ array_api_tests/test_manipulation_functions.py::test_repeat
Original file line number Diff line number Diff line change @@ -23,3 +23,5 @@ array_api_tests/test_signatures.py::test_extension_func_signature[linalg.vecdot]
2323array_api_tests/test_signatures.py::test_func_signature[astype]
2424array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
2525array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
26+ # uint64 repeats not supported
27+ array_api_tests/test_manipulation_functions.py::test_repeat
Original file line number Diff line number Diff line change @@ -43,3 +43,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
4343array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
4444array_api_tests/test_signatures.py::test_func_signature[astype]
4545array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
46+ # uint64 repeats not supported
47+ array_api_tests/test_manipulation_functions.py::test_repeat
Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ mkdir -p $SCRIPT_DIR/.hypothesis
2626ln -s $SCRIPT_DIR /.hypothesis .hypothesis
2727
2828export ARRAY_API_TESTS_MODULE=array_api_compat.cupy
29+ export ARRAY_API_TESTS_VERSION=2023.12
2930pytest array_api_tests/ ${PYTEST_ARGS} --xfails-file $SCRIPT_DIR /cupy-xfails.txt " $@ "
You can’t perform that action at this time.
0 commit comments