torch.index_copy¶ torch.index_copy(input: Tensor, dim: int, index: Tensor, source: Tensor, *, out: Optional[Tensor]) → Tensor¶ 參見 index_add_() 檢視函式描述。