Skip to content

Commit 85b0f4c

Browse files
committed
remove redundant rsqrt tests
1 parent 66a97cb commit 85b0f4c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

dpctl/tests/elementwise/test_rsqrt.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_rsqrt_out_type(dtype):
3636

3737

3838
@pytest.mark.parametrize("dtype", _real_fp_dtypes)
39-
def test_rsqrt_output_contig(dtype):
39+
def test_rsqrt_basic(dtype):
4040
q = get_queue_or_skip()
4141
skip_if_dtype_not_supported(dtype, q)
4242

@@ -49,20 +49,6 @@ def test_rsqrt_output_contig(dtype):
4949
assert_allclose(dpt.asnumpy(res), expected, atol=tol, rtol=tol)
5050

5151

52-
@pytest.mark.parametrize("dtype", _real_fp_dtypes)
53-
def test_rsqrt_output_strided(dtype):
54-
q = get_queue_or_skip()
55-
skip_if_dtype_not_supported(dtype, q)
56-
57-
n_seq = 2054
58-
59-
x = dpt.linspace(1, 13, num=n_seq, dtype=dtype, sycl_queue=q)[::-2]
60-
res = dpt.rsqrt(x)
61-
expected = np.reciprocal(np.sqrt(dpt.asnumpy(x), dtype=dtype))
62-
tol = 8 * dpt.finfo(res.dtype).resolution
63-
assert_allclose(dpt.asnumpy(res), expected, atol=tol, rtol=tol)
64-
65-
6652
def test_rsqrt_special_cases():
6753
get_queue_or_skip()
6854

0 commit comments

Comments
 (0)