torch.Tensor.index_add¶
-
Tensor.
index_add
(tensor1, dim, index, tensor2) → Tensor¶ Out-of-place version of
torch.Tensor.index_add_()
. tensor1 corresponds to self intorch.Tensor.index_add_()
.
Tensor.
index_add
(tensor1, dim, index, tensor2) → Tensor¶Out-of-place version of torch.Tensor.index_add_()
.
tensor1 corresponds to self in torch.Tensor.index_add_()
.