File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2121import dpctl .tensor as dpt
2222from dpctl .tests .helper import get_queue_or_skip , skip_if_dtype_not_supported
2323
24- from .utils import _map_to_device_dtype , _real_fp_dtypes
24+ from .utils import _map_to_device_dtype , _no_complex_dtypes , _real_fp_dtypes
2525
2626
27- @pytest .mark .parametrize ("dtype" , _real_fp_dtypes )
27+ @pytest .mark .parametrize ("dtype" , _no_complex_dtypes )
2828def test_cbrt_out_type (dtype ):
2929 q = get_queue_or_skip ()
3030 skip_if_dtype_not_supported (dtype , q )
Original file line number Diff line number Diff line change 2222import dpctl .tensor as dpt
2323from dpctl .tests .helper import get_queue_or_skip , skip_if_dtype_not_supported
2424
25- from .utils import _compare_dtypes , _real_fp_dtypes
25+ from .utils import _compare_dtypes , _no_complex_dtypes , _real_fp_dtypes
2626
2727
28- @pytest .mark .parametrize ("op1_dtype" , _real_fp_dtypes )
29- @pytest .mark .parametrize ("op2_dtype" , _real_fp_dtypes )
28+ @pytest .mark .parametrize ("op1_dtype" , _no_complex_dtypes )
29+ @pytest .mark .parametrize ("op2_dtype" , _no_complex_dtypes )
3030def test_copysign_dtype_matrix (op1_dtype , op2_dtype ):
3131 q = get_queue_or_skip ()
3232 skip_if_dtype_not_supported (op1_dtype , q )
Original file line number Diff line number Diff line change 2121import dpctl .tensor as dpt
2222from dpctl .tests .helper import get_queue_or_skip , skip_if_dtype_not_supported
2323
24- from .utils import _map_to_device_dtype , _real_fp_dtypes
24+ from .utils import _map_to_device_dtype , _no_complex_dtypes , _real_fp_dtypes
2525
2626
27- @pytest .mark .parametrize ("dtype" , _real_fp_dtypes )
27+ @pytest .mark .parametrize ("dtype" , _no_complex_dtypes )
2828def test_rsqrt_out_type (dtype ):
2929 q = get_queue_or_skip ()
3030 skip_if_dtype_not_supported (dtype , q )
3131
3232 x = dpt .asarray (1 , dtype = dtype , sycl_queue = q )
33- expected_dtype = np .reciprocal (np .sqrt (1 , dtype = dtype )).dtype
33+ expected_dtype = np .reciprocal (np .sqrt (np . array ( 1 , dtype = dtype ) )).dtype
3434 expected_dtype = _map_to_device_dtype (expected_dtype , q .sycl_device )
3535 assert dpt .rsqrt (x ).dtype == expected_dtype
3636
You can’t perform that action at this time.
0 commit comments