Skip to content

Commit 7847136

Browse files
authored
Merge pull request #323 from ev-br/release_1.12
ENH: release 1.12 branch
2 parents 6c6bcf2 + 8005d6d commit 7847136

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

array_api_compat/__init__.py

Lines changed: 1 addition & 1 deletion
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.12.dev0'
20+
__version__ = '1.12.0'
2121

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

cupy-xfails.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_sc
3939
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[logaddexp]
4040
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[nextafter]
4141
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[hypot]
42+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[atan2]
43+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[divide]
44+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[copysign]
45+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[divide]
46+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[maximum]
4247

4348
# cupy (arg)min/max wrong with infinities
4449
# https://github.com/cupy/cupy/issues/7424

docs/changelog.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## 1.12.0 (2025-05-13)
4+
5+
6+
### Major changes
7+
8+
- The build system has been updated to use `pyproject.toml` instead of `setup.py`
9+
- Support for Python 3.9 has been dropped. The minimum supported Python version is now
10+
3.10; the minimum supported NumPy version is 1.22.
11+
- The `linalg` extension works correctly with `pytorch>=2.7`.
12+
- Multiple improvements to handling of devices in CuPy and PyTorch backends.
13+
Support for multiple devices in CuPy is still immature and you should use
14+
context managers rather than relying on input-output device propagation or
15+
on the `device` parameter. Please report any issues you encounter.
16+
17+
### Minor changes
18+
19+
- `finfo` and `iinfo` functions now accept array arguments, in accordance with the
20+
Array API spec;
21+
- `torch.asarray` function propagates the device of the input array. This works around
22+
the [pytorch issue #150199](https://github.com/pytorch/pytorch/issues/150199);
23+
- `torch.repeat` function is now available;
24+
- `torch.count_nonzero` function now correctly handles the case of a tuple `axis`
25+
arguments and `keepdims=True`;
26+
- `torch.meshgrid` wrapper defaults to `indexing="xy"`, in accordance with the
27+
array API specification;
28+
- `cupy.asarray` function now implements the `copy=False` argument, albeit
29+
at the cost of risking to make a temporary copy.
30+
- In `numpy.take_along_axis` and `cupy.take_along_axis` the `axis` parameter now
31+
defaults to -1, in accordance to the Array API spec.
32+
33+
34+
The following users contributed to this release:
35+
36+
Evgeni Burovski,
37+
Lucas Colley,
38+
Neil Girdhar,
39+
Joren Hammudoglu,
40+
Guido Imperiale
41+
42+
343
## 1.11.2 (2025-03-20)
444

545
This is a bugfix release with no new features compared to version 1.11.

numpy-1-22-xfails.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_sc
131131
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[nextafter]
132132
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[multiply]
133133
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[maximum]
134+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[minimum]
134135
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[copysign]
135136
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[pow]
136137
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[pow]

0 commit comments

Comments
 (0)