We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff8669 commit 783d264Copy full SHA for 783d264
dpnp/tests/test_memory.py
@@ -26,3 +26,8 @@ def test_wrong_usm_data(self):
26
27
with pytest.raises(TypeError):
28
dpm.create_data(d)
29
+
30
+ def test_ndarray_from_data(self):
31
+ a = dpnp.empty(5)
32
+ b = dpnp.ndarray(a.shape, buffer=a.data)
33
+ assert b.data is a.data
0 commit comments