File tree Expand file tree Collapse file tree
tests/third_party/cupy/math_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,13 +168,6 @@ def check_binary(self, xp):
168168 y = y .astype (dtype1 )
169169 elif is_array_arg2 and not is_array_arg1 :
170170 y = y .astype (dtype2 )
171- elif self .name in ('divide' , 'true_divide' ):
172- # If one input is an array of float32 and another - an integer or floating scalar,
173- # NumPy will return an output array of float32, while DPNP will return the array of float64,
174- # since NumPy would use the same float64 type when instead of scalar here is array of integer of floating type.
175- if not (is_array_arg1 and is_array_arg2 ):
176- if (is_array_arg1 and arg1 .dtype == numpy .float32 ) ^ (is_array_arg2 and arg2 .dtype == numpy .float32 ):
177- y = y .astype (numpy .float32 )
178171
179172 # NumPy returns different values (nan/inf) on division by zero
180173 # depending on the architecture.
You can’t perform that action at this time.
0 commit comments