torch.Tensor.index_add¶ Tensor.index_add(dim, index, source, *, alpha=1) → Tensor¶ 是 torch.Tensor.index_add_() 的異地 (out-of-place) 版本。