File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
dpnp/tests/third_party/cupy Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,15 @@ def test_strides_is_given_but_order_is_invalid(self):
108108 def test_order (self ):
109109 shape = (2 , 3 , 4 )
110110 a = cupy .ndarray (shape , order = "F" )
111- a_cpu = numpy .ndarray (shape , order = "F" )
111+ a_cpu = numpy .ndarray (shape , order = "F" , dtype = a . dtype )
112112 assert a .strides == a_cpu .strides
113113 assert a .flags .f_contiguous
114114 assert not a .flags .c_contiguous
115115
116116 def test_order_none (self ):
117117 shape = (2 , 3 , 4 )
118118 a = cupy .ndarray (shape , order = None )
119- a_cpu = numpy .ndarray (shape , order = None )
119+ a_cpu = numpy .ndarray (shape , order = None , dtype = a . dtype )
120120 assert a .flags .c_contiguous == a_cpu .flags .c_contiguous
121121 assert a .flags .f_contiguous == a_cpu .flags .f_contiguous
122122 assert a .strides == a_cpu .strides
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ def test_ones_like_subok(self):
270270 ],
271271 )
272272 def test_ndarray_strides (self , shape , strides ):
273- a = cupy .ndarray (shape , strides = strides , dtype = "float64" )
273+ a = cupy .ndarray (shape , strides = strides , dtype = float )
274274 assert cupy .byte_bounds (a )[0 ] == a .data .ptr
275275 assert cupy .byte_bounds (a )[1 ] - a .data .ptr <= a .data .size
276276
You can’t perform that action at this time.
0 commit comments