Skip to content

Commit 3429905

Browse files
author
Vahid Tavanashad
committed
add a comment
1 parent 5e1a355 commit 3429905

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dpnp/dpnp_algo/dpnp_elementwise_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ def __call__(self, x, out=None, order="K"):
537537
elif out is not None and not dpnp.is_supported_array_type(out):
538538
pass # pass to raise error in main implementation
539539
elif out is not None and out.dtype != x.dtype:
540+
# passing will raise an error but with incorrect needed dtype
540541
raise ValueError(
541542
f"Output array of type {x.dtype} is needed, got {out.dtype}"
542543
)

dpnp/tests/test_mathematical.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ def test_out_float16(self, func):
22702270
assert result is iout
22712271
assert_array_equal(result, expected)
22722272

2273+
@testing.with_requires("numpy>=2.1.0")
22732274
@pytest.mark.parametrize(
22742275
"dt", get_all_dtypes(no_none=True, no_complex=True)
22752276
)

0 commit comments

Comments
 (0)