Skip to content

Commit 5d612c6

Browse files
committed
Remove TODO in the code with dpnp.ndindex
1 parent f703070 commit 5d612c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dpnp/dpnp_utils/dpnp_utils_pad.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,7 @@ def dpnp_pad(array, pad_width, mode="constant", **kwargs):
642642

643643
# compute indices for the iteration axes, and append a trailing
644644
# ellipsis to prevent 0d arrays decaying to scalars
645-
# TODO: replace with dpnp.ndindex when implemented
646-
inds = numpy.ndindex(view.shape[:-1])
645+
inds = dpnp.ndindex(view.shape[:-1])
647646
inds = (ind + (Ellipsis,) for ind in inds)
648647
for ind in inds:
649648
function(view[ind], pad_width[axis], axis, kwargs)

0 commit comments

Comments
 (0)