Python wrappers
Public Python APIs implemented by this engine symbol.Slice a contiguous window [start, start + length) along dim.
Composite over split_at_op. Returns the input unchanged when
the window covers the full axis (zero-cost fast path). Gradient flows
through SplitSliceBackward.
Math
See Also
split_at_op — underlying primitive.
Parameters
aTensorImplPtrSource tensor of rank .
dimintAxis to slice along. Negative values wrap modulo
a.ndim.startint64Inclusive start index along
dim. Must be non-negative.lengthint64Window length. Must satisfy
start + length <= a.shape[dim].Returns
TensorImplPtrTensor with the same shape as a except size length along dim. When the window covers the full axis, the input is returned by identity.
Raises
IndexErrorIf
dim is out of range or the window falls outside a.