torch.index_copy¶ torch.index_copy(input: Tensor, dim: int, index: Tensor, source: Tensor, *, out: Optional[Tensor]) → Tensor¶ 参见 index_add_() 查看函数描述。