def natural_step
bendtorch-core@0.1.0.0 · src/tensor/transforms.bend:138
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
138def natural_step(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>, +cursor: Nat,
139 source: Core.Tensor<input>, target: Core.Tensor<Layout.output(input, axes, plan)>) -> NaturalCopy<input, axes, plan, cursor>:
140 +index = U32.from_nat(cursor)
141 natural_decided(input, axes, plan, cursor, index, source, target, {==},
142 Shape.bool_case(Nat.is_eq(U32.to_nat(index), cursor)))