torch.Tensor.index_add¶ Tensor.index_add(dim, index, source, *, alpha=1) → 张量¶ 就地版本的 torch.Tensor.index_add_()。