Skip to content

Add a CuPy xfail #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cupy-xfails.txt
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ array_api_tests/test_manipulation_functions.py::test_repeat
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]

+# 2024.12 support
# 2024.12 support
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
@@ -192,3 +192,5 @@ array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
array_api_tests/test_special_cases.py::test_binary[nextafter(x1_i is +0 and x2_i is -0) -> -0]

# cupy 13.x follows numpy 1.x w/o weak promotion: result_type(int32, uint8, 1) != result_type(int32, uint8)
array_api_tests/test_data_type_functions.py::TestResultType::test_with_scalars

Unchanged files with check annotations Beta

_py_scalars = (bool, int, float, complex)
def result_type(*arrays_and_dtypes: Union[array, Dtype, bool, int, float, complex]) -> Dtype:

Check failure on line 126 in array_api_compat/torch/_aliases.py

GitHub Actions / check-ruff

array_api_compat/torch/_aliases.py:126:37: SyntaxError: Cannot use star annotation on Python 3.9 (syntax was added in Python 3.11)

Check failure on line 126 in array_api_compat/torch/_aliases.py

GitHub Actions / check-ruff

array_api_compat/torch/_aliases.py:126:37: SyntaxError: Cannot use star annotation on Python 3.9 (syntax was added in Python 3.11)
num = len(arrays_and_dtypes)
if num == 0:
return x.to(dtype=dtype, copy=copy)
def broadcast_arrays(*arrays: array) -> List[array]:

Check failure on line 690 in array_api_compat/torch/_aliases.py

GitHub Actions / check-ruff

array_api_compat/torch/_aliases.py:690:31: SyntaxError: Cannot use star annotation on Python 3.9 (syntax was added in Python 3.11)

Check failure on line 690 in array_api_compat/torch/_aliases.py

GitHub Actions / check-ruff

array_api_compat/torch/_aliases.py:690:31: SyntaxError: Cannot use star annotation on Python 3.9 (syntax was added in Python 3.11)
shape = torch.broadcast_shapes(*[a.shape for a in arrays])
return [torch.broadcast_to(a, shape) for a in arrays]