torch.index_copy¶ torch.index_copy(input: Tensor, dim: int, index: Tensor, source: Tensor, *, out: Optional[Tensor]) → Tensor¶ 請參閱 index_add_() 以取得函式說明。