def natural_result

bendtorch-core@0.1.0.0 · src/tensor/transforms.bend:121

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

121def natural_result(-input: Shape.Shape, -axes: List<&2, U32>, -plan: Layout.Plan<input, axes>,
122  -cursor: Nat, -index: U32, -word_exact: {U32.to_nat(index) == cursor : Nat}, -candidate: {index == U32.from_nat(cursor) : U32},
123  pair: Core.Tensor<input> & Result<&2, &1, Error, Core.Tensor<Layout.output(input, axes, plan)>>) ->
124  NaturalCopy<input, axes, plan, cursor>:
125  NaturalCopied{pair, index, word_exact, candidate}

Uses (13)

Used by (2)