Skip to content

Commit bc52234

Browse files
Update test_from_dlpack_with_dpt to use empty from dpctl_ext
1 parent 42a6ada commit bc52234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_sycl_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def test_from_dlpack(arr_dtype, shape, device):
11031103
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
11041104
@pytest.mark.parametrize("arr_dtype", get_all_dtypes(no_float16=True))
11051105
def test_from_dlpack_with_dpt(arr_dtype, device):
1106-
X = dpctl.tensor.empty((64,), dtype=arr_dtype, device=device)
1106+
X = dpt.empty((64,), dtype=arr_dtype, device=device)
11071107
Y = dpnp.from_dlpack(X)
11081108
assert_array_equal(X, Y)
11091109
assert isinstance(Y, dpnp.dpnp_array.dpnp_array)

0 commit comments

Comments
 (0)