Skip to content

Tensor.Slice

Name Mandatory Description Default Type
⬅️ Input The input of the shard, if any Tensor
Output ➡️ The resulting output of the shard Tensor
Dim No The dimension along which to slice the tensor. none IntVar(Int)
Start No The starting index of the slice. none IntVar(Int)
End No The ending index of the slice (exclusive). none IntVar(Int)

Slices a tensor along a specified dimension.