Skip to content

Commit d4ee71e

Browse files
authored
Remove TODO from the code as no plan to support negative values in shape setter (#2032)
1 parent aaf8e4e commit d4ee71e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ def _gradient_num_diff_2nd_order_interior(
224224
# fix the shape for broadcasting
225225
shape = [1] * ndim
226226
shape[axis] = -1
227-
# TODO: use shape.setter once dpctl#1699 is resolved
228-
# a.shape = b.shape = c.shape = shape
227+
229228
a = a.reshape(shape)
230229
b = b.reshape(shape)
231230
c = c.reshape(shape)

tests/third_party/cupy/core_tests/test_ndarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def test_shape_set(self, xp):
272272
return xp.array(arr.shape)
273273

274274
@pytest.mark.skip(
275-
"dpctl-1699: shape setter does not work with negative shape"
275+
"dpctl-1699: shape setter does not work with negative shape "
276+
"(no plan to support that)"
276277
)
277278
@testing.numpy_cupy_array_equal()
278279
def test_shape_set_infer(self, xp):

0 commit comments

Comments
 (0)