Skip to content

Commit 10a3e2b

Browse files
Replaced constructor with dtype 'd' with call to ones to dynamically figure out the data type appropriate for the device
1 parent 6b68466 commit 10a3e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tests/test_usm_ndarray_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def multiply(a, b):
4949

5050
@pytest.mark.parametrize("namespace", [None, Dummy()])
5151
def test_fp_ops(namespace):
52-
X = dpt.usm_ndarray(1, "d")
52+
X = dpt.ones(1)
5353
X._set_namespace(namespace)
5454
assert X.__array_namespace__() is namespace
5555
X[0] = -2.5

0 commit comments

Comments
 (0)