Skip to content

Commit 1f2f5d0

Browse files
committed
Use ndarray.data.ptr in the code
1 parent 7918bcf commit 1f2f5d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/dpnp_iface_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ def put(a, ind, v, /, *, axis=None, mode="wrap"):
17441744
usm_a = dpt.reshape(usm_a, -1)
17451745

17461746
dpt.put(usm_a, usm_ind, usm_v, axis=axis, mode=mode)
1747-
if in_usm_a._pointer != usm_a._pointer: # pylint: disable=protected-access
1747+
if in_usm_a.data.ptr != usm_a.data.ptr:
17481748
in_usm_a[:] = dpt.reshape(usm_a, in_usm_a.shape, copy=False)
17491749

17501750

0 commit comments

Comments
 (0)