torch.index_copy¶ torch.index_copy(input: Tensor, dim: int, index: Tensor, source: Tensor, *, out: Optional[Tensor]) → Tensor¶ 有关函数描述,请参阅 index_add_()。