torch.Tensor.Tensor.narrow_copy
Tensor.narrow_copy<Dim extends number, St extends number, L extends number>(dim: Dim, start: St, length: L): Tensor<DynamicShape, D, Dev>Tensor.narrow_copy(dim: number, start: number, length: number): Tensor<DynamicShape, D, Dev>Same as narrow but returns a copy instead of a view.
Parameters
dimDim- The dimension to narrow
startSt- The starting index
lengthL- The length of the narrow slice
Returns
Tensor<DynamicShape, D, Dev>– Narrowed tensor copy