def mapping_done

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

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/transform_LAWS.bend as Laws
import bendtorch-core@0.1.0.0/src/tensor/transform_totality.bend as Totality

2226def mapping_done(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>, +index: U32,
2227  +inside: {True{} == U32.is_lt(index, Shape.count(Layout.output(input, axes, plan))) : Bool}) ->
2228  Totality.MappingDone<input, axes, plan, index, Layout.map_index(input, axes, plan, index)>:
2229  mapping_done_result(input, axes, plan, index, Layout.map_index(input, axes, plan, index),
2230    {\{Totality.MappingSuccess: successful => successful} : Totality.MappingSuccess<input, axes, plan, index> ->
2231      {Result.is_done(&2, &2, Layout.Error, Layout.Mapping<input, axes, plan, index>, Layout.map_index(input, axes, plan, index)) == True{} : Bool}}(
2232        Laws.mapping_valid_success(input, axes, plan, index, inside)))

Uses (16)

Used by (2)