Skip to content

Commit 4ac3d33

Browse files
authored
Merge pull request #185 from asmeurer/release
1.9 release
2 parents b30a59e + 0e86d92 commit 4ac3d33

8 files changed

+54
-1
lines changed

Diff for: array_api_compat/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
this implementation for the default when working with NumPy arrays.
1818
1919
"""
20-
__version__ = '1.8'
20+
__version__ = '1.9'
2121

2222
from .common import * # noqa: F401, F403

Diff for: cupy-xfails.txt

+8
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ array_api_tests/test_special_cases.py::test_unary[floor(x_i is -0) -> -0]
161161
array_api_tests/test_special_cases.py::test_unary[log1p(x_i is -0) -> -0]
162162
array_api_tests/test_special_cases.py::test_unary[round(x_i is -0) -> -0]
163163
array_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]
164165
array_api_tests/test_special_cases.py::test_unary[sinh(x_i is -0) -> -0]
165166
array_api_tests/test_special_cases.py::test_unary[sqrt(x_i is -0) -> -0]
166167
array_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]
172173
array_api_tests/test_fft.py::test_fftn
173174
array_api_tests/test_fft.py::test_ifftn
174175
array_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__]

Diff for: docs/changelog.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
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

Diff for: numpy-1-21-xfails.txt

+2
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
256256
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
257257
array_api_tests/test_signatures.py::test_func_signature[astype]
258258
array_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

Diff for: numpy-1-26-xfails.txt

+2
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
5151
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
5252
array_api_tests/test_signatures.py::test_func_signature[astype]
5353
array_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

Diff for: numpy-dev-xfails.txt

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ array_api_tests/test_signatures.py::test_extension_func_signature[linalg.vecdot]
2323
array_api_tests/test_signatures.py::test_func_signature[astype]
2424
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
2525
array_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

Diff for: numpy-xfails.txt

+2
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ array_api_tests/test_searching_functions.py::test_searchsorted
4343
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
4444
array_api_tests/test_signatures.py::test_func_signature[astype]
4545
array_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

Diff for: test_cupy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ mkdir -p $SCRIPT_DIR/.hypothesis
2626
ln -s $SCRIPT_DIR/.hypothesis .hypothesis
2727

2828
export ARRAY_API_TESTS_MODULE=array_api_compat.cupy
29+
export ARRAY_API_TESTS_VERSION=2023.12
2930
pytest array_api_tests/ ${PYTEST_ARGS} --xfails-file $SCRIPT_DIR/cupy-xfails.txt "$@"

0 commit comments

Comments
 (0)