File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- import ctypes
18-
1917import numpy as np
2018import pytest
2119
@@ -59,26 +57,6 @@ def test_copysign_dtype_matrix(op1_dtype, op2_dtype):
5957 assert (dpt .asnumpy (r ) == expected .astype (r .dtype )).all ()
6058
6159
62- @pytest .mark .parametrize ("arr_dt" , _real_fp_dtypes )
63- def test_copysign_python_scalar (arr_dt ):
64- q = get_queue_or_skip ()
65- skip_if_dtype_not_supported (arr_dt , q )
66-
67- X = dpt .ones ((10 , 10 ), dtype = arr_dt , sycl_queue = q )
68- py_ones = (
69- bool (1 ),
70- int (1 ),
71- float (1 ),
72- np .float32 (1 ),
73- ctypes .c_int (1 ),
74- )
75- for sc in py_ones :
76- R = dpt .copysign (X , sc )
77- assert isinstance (R , dpt .usm_ndarray )
78- R = dpt .copysign (sc , X )
79- assert isinstance (R , dpt .usm_ndarray )
80-
81-
8260@pytest .mark .parametrize ("dt" , _real_fp_dtypes )
8361def test_copysign (dt ):
8462 q = get_queue_or_skip ()
You can’t perform that action at this time.
0 commit comments