We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__setitem__()
1 parent e14433b commit 17b61bdCopy full SHA for 17b61bd
torch_np/_ndarray.py
@@ -425,7 +425,7 @@ def __getitem__(self, index):
425
return ndarray._from_tensor_and_base(self._tensor.__getitem__(index), self)
426
427
def __setitem__(self, index, value):
428
- index = _helpers.to_tensors(index)
+ index = _helpers.ndarrays_to_tensors(index)
429
index = ndarray._upcast_int_indices(index)
430
value = asarray(value).get()
431
return self._tensor.__setitem__(index, value)
0 commit comments