def sliced

bendtorch-core@0.1.0.0 · src/autograd/tensor_backward.bend:1503

import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackward
import Base
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed

1503# Records a slice of a copy of a's value (Signed.slice, narrow or select) as
1504# a Slice node with a's shape, the slice's shape with the axis kept and its
1505# plan. The value is checked first, so a refusal is the value's: an axis
1506# outside -rank..rank-1 is AxisOutOfBounds (13), a step of 0 StepNotPositive
1507# (19), a narrow past the extent or with a start before -extent, or a select
1508# index outside -extent..extent-1, OutOfRange (20), an unknown id
1509# UnknownNode; the tape comes back unchanged.
1510def sliced(tape: Tape, +a: Nat, +slicing: Slicing) -> Tape & Result<&2, &2, Error, Nat>:
1511  Tape{entries} = tape
1512  slice_found(a, slicing, value_counted(a, counted(entries)))

Uses (9)

Used by (3)