Skip to content

Commit 18df92a

Browse files
Removed obsolete notice in description of indices
Also, improved wording in the added note.
1 parent 124458f commit 18df92a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dpctl/tensor/_indexing_functions.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ def put(x, indices, vals, /, *, axis=None, mode="wrap"):
136136
The array the values will be put into.
137137
indices (usm_ndarray):
138138
One-dimensional array of indices.
139-
140-
Note that if indices are not unique, a race
141-
condition will result, and the value written to
142-
``x`` will not be deterministic.
143-
:func:`dpctl.tensor.unique` can be used to
144-
guarantee unique elements in ``indices``.
145139
vals (usm_ndarray):
146140
Array of values to be put into ``x``.
147141
Must be broadcastable to the result shape
@@ -165,7 +159,8 @@ def put(x, indices, vals, /, *, axis=None, mode="wrap"):
165159
If input array ``indices`` contains duplicates, a race condition
166160
occurs, and the value written into corresponding positions in ``x``
167161
may vary from run to run. Preserving sequential semantics in handing
168-
the duplicates requires additional work, e.g.
162+
the duplicates to achieve deterministic behavior requires additional
163+
work, e.g.
169164
170165
:Example:
171166

0 commit comments

Comments
 (0)