def natural_certificate

bendtorch-core@0.1.0.0 · src/tensor/transform_PROOF.bend:683

import bendtorch-core@0.1.0.0/src/tensor/transform_PROOF.bend as TransformPROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms

683def natural_certificate(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>, +cursor: Nat,
684  source: Core.Tensor<input>, target: Core.Tensor<Layout.output(input, axes, plan)>) ->
685  Transforms.NaturalCertificate<input, axes, plan, cursor, source, target>:
686  +index = U32.from_nat(cursor)
687  natural_decided_certificate(input, axes, plan, cursor, index, source, target, {==}, Shape.bool_case(Nat.is_eq(U32.to_nat(index), cursor)), {==})

Uses (13)

Used by (1)