type Slicing
import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackwardimport Base
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
1444# Which of the three a slice step is: PyTorch's a[..., start:stop:step, ...]
1445# at axis `dim`, a.narrow(dim, start, length) and a.select(dim, index). The
1446# axis and the positions along it are PyTorch's signed ints (signed.bend).
1447type Slicing is Data:
1448 Sliced{dim: Signed.Position, start: Signed.Position, stop: Signed.Position, step: U32}
1449 Narrowed{dim: Signed.Position, start: Signed.Position, length: U32}
1450 Selected{dim: Signed.Position, index: Signed.Position}
Uses (2)
Used by (10)
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:sliced
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:slice_axis_plan
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:slice_dim
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:slice_found
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:slice_plan
- …