Skip to content

Commit fbd2802

Browse files
committed
minor updates
1 parent 233cf57 commit fbd2802

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dpnp/dpnp_utils/dpnp_utils_pad.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _as_pairs(x, ndim, as_index=False):
7979
x = numpy.asarray(numpy.round(x), dtype=numpy.intp)
8080

8181
if x.ndim < 3:
82-
# Optimization: Possibly use faster paths for cases where `x` has
82+
# Optimization: Using faster paths for cases where `x` has
8383
# only 1 or 2 elements. `numpy.broadcast_to` could handle these as well
8484
# but is currently slower
8585

@@ -116,7 +116,7 @@ def _get_edges(padded, axis, width_pair):
116116
117117
Parameters
118118
----------
119-
padded : ndarray
119+
padded : dpnp.ndarray
120120
Empty-padded array.
121121
axis : int
122122
Dimension in which the edges are considered.
@@ -126,7 +126,7 @@ def _get_edges(padded, axis, width_pair):
126126
127127
Returns
128128
-------
129-
left_edge, right_edge : ndarray
129+
left_edge, right_edge : dpnp.ndarray
130130
Edge values of the valid area in `padded` in the given dimension. Its
131131
shape will always match `padded` except for the dimension given by
132132
`axis` which will have a length of 1.
@@ -151,7 +151,7 @@ def _get_linear_ramps(padded, axis, width_pair, end_value_pair):
151151
152152
Parameters
153153
----------
154-
padded : ndarray
154+
padded : dpnp.ndarray
155155
Empty-padded array.
156156
axis : int
157157
Dimension in which the ramps are constructed.
@@ -164,7 +164,7 @@ def _get_linear_ramps(padded, axis, width_pair, end_value_pair):
164164
165165
Returns
166166
-------
167-
left_ramp, right_ramp : ndarray
167+
left_ramp, right_ramp : dpnp.ndarray
168168
Linear ramps to set on both sides of `padded`.
169169
170170
"""
@@ -203,7 +203,7 @@ def _get_stats(padded, axis, width_pair, length_pair, stat_func):
203203
204204
Parameters
205205
----------
206-
padded : ndarray
206+
padded : dpnp.ndarray
207207
Empty-padded array.
208208
axis : int
209209
Dimension in which the statistic is calculated.

0 commit comments

Comments
 (0)