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 4343118 commit 83deb0dCopy full SHA for 83deb0d
tests/test_sum.py
@@ -1,10 +1,21 @@
1
import dpnp
2
+from .helper import skip_or_change_if_dtype_not_supported
3
4
import numpy
5
6
-def test_sum_float64():
7
- a = numpy.array([[[-2., 3.], [9.1, 0.2]], [[-2., 5.0], [-2, -1.2]], [[1.0, -2.], [5.0, -1.1]]])
+dtype = skip_or_change_if_dtype_not_supported(numpy.float64, change_dtype=True)
8
+
9
10
+def test_sum_float():
11
+ a = numpy.array(
12
+ [
13
+ [[-2.0, 3.0], [9.1, 0.2]],
14
+ [[-2.0, 5.0], [-2, -1.2]],
15
+ [[1.0, -2.0], [5.0, -1.1]],
16
+ ],
17
+ dtype=dtype,
18
+ )
19
ia = dpnp.array(a)
20
21
for axis in range(len(a)):
@@ -23,7 +34,14 @@ def test_sum_int():
23
34
24
35
25
36
def test_sum_axis():
26
37
38
39
40
41
42
43
44
27
45
28
46
29
47
result = dpnp.sum(ia, axis=1)
0 commit comments