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