Skip to content

Commit 123092b

Browse files
committed
Tweaks to docstrings in _set_functions
1 parent 03e9fbd commit 123092b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dpctl/tensor/_set_functions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ class UniqueInverseResult(NamedTuple):
6666
def unique_values(x: dpt.usm_ndarray) -> dpt.usm_ndarray:
6767
"""unique_values(x)
6868
69-
Returns the unique elements of an input array x.
69+
Returns the unique elements of an input array `x`.
7070
7171
Args:
7272
x (usm_ndarray):
73-
input array. The input with more than one dimension is flattened.
73+
input array. Inputs with more than one dimension are flattened.
7474
Returns:
7575
usm_ndarray
7676
an array containing the set of unique elements in `x`. The
@@ -152,7 +152,7 @@ def unique_counts(x: dpt.usm_ndarray) -> UniqueCountsResult:
152152
153153
Args:
154154
x (usm_ndarray):
155-
input array. The input with more than one dimension is flattened.
155+
input array. Inputs with more than one dimension are flattened.
156156
Returns:
157157
tuple[usm_ndarray, usm_ndarray]
158158
a namedtuple `(values, counts)` whose
@@ -278,7 +278,7 @@ def unique_inverse(x):
278278
279279
Args:
280280
x (usm_ndarray):
281-
input array. The input with more than one dimension is flattened.
281+
input array. Inputs with more than one dimension are flattened.
282282
Returns:
283283
tuple[usm_ndarray, usm_ndarray]
284284
a namedtuple `(values, inverse_indices)` whose
@@ -435,7 +435,7 @@ def unique_all(x: dpt.usm_ndarray) -> UniqueAllResult:
435435
436436
Args:
437437
x (usm_ndarray):
438-
input array. The input with more than one dimension is flattened.
438+
input array. Inputs with more than one dimension are flattened.
439439
Returns:
440440
tuple[usm_ndarray, usm_ndarray, usm_ndarray, usm_ndarray]
441441
a namedtuple `(values, indices, inverse_indices, counts)` whose

0 commit comments

Comments
 (0)