torch.index_add torch.index_add(input, dim, index, source, *, alpha=1, out=None) → Tensor 参见index_add_()以获取函数描述。