@@ -57,7 +57,7 @@ def test_floor_ceil_trunc_usm_type(np_call, dpt_call, usm_type):
57
57
q = get_queue_or_skip ()
58
58
59
59
arg_dt = np .dtype ("f4" )
60
- input_shape = (2 , 2 , 2 , 10 )
60
+ input_shape = (10 , 10 , 10 , 10 )
61
61
X = dpt .empty (input_shape , dtype = arg_dt , usm_type = usm_type , sycl_queue = q )
62
62
X [..., 0 ::2 ] = - 0.4
63
63
X [..., 1 ::2 ] = 0.7
@@ -67,8 +67,7 @@ def test_floor_ceil_trunc_usm_type(np_call, dpt_call, usm_type):
67
67
assert Y .sycl_queue == X .sycl_queue
68
68
assert Y .flags .c_contiguous
69
69
70
- expected_Y = np .empty (input_shape , dtype = arg_dt )
71
- expected_Y = np_call (np .float32 (X ))
70
+ expected_Y = np_call (dpt .asnumpy (X ))
72
71
tol = 8 * dpt .finfo (Y .dtype ).resolution
73
72
assert_allclose (dpt .asnumpy (Y ), expected_Y , atol = tol , rtol = tol )
74
73
@@ -125,12 +124,6 @@ def test_floor_ceil_trunc_errors(dpt_call):
125
124
y ,
126
125
)
127
126
128
- x = dpt .zeros (2 )
129
- y = x
130
- assert_raises_regex (
131
- TypeError , "Input and output arrays have memory overlap" , dpt_call , x , y
132
- )
133
-
134
127
x = dpt .zeros (2 , dtype = "float32" )
135
128
y = np .empty_like (x )
136
129
assert_raises_regex (
0 commit comments