We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759e916 commit 2da72cdCopy full SHA for 2da72cd
dpnp/tests/third_party/cupy/sorting_tests/test_count.py
@@ -7,6 +7,7 @@
7
8
9
class TestCount(unittest.TestCase):
10
+
11
@testing.for_all_dtypes()
12
def test_count_nonzero(self, dtype):
13
def func(xp):
@@ -17,7 +18,7 @@ def func(xp):
17
18
# CuPy returns zero-dimensional array instead of
19
# returning a scalar value
20
assert isinstance(c, xp.ndarray)
- assert c.dtype == "p"
21
+ assert c.dtype == "l"
22
assert c.shape == ()
23
return int(c)
24
@@ -32,7 +33,7 @@ def func(xp):
32
33
34
35
36
37
38
39
0 commit comments