def LoopMeaning
bendtorch-core@0.1.0.0 · src/tensor/reduction_LAWS.bend:30
import bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS.bend as ReductionLAWS
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
30def LoopMeaning(-fuel: Nat, -shape: Shape.Shape, -original: Core.Tensor<shape>, -cursor: Nat, -accumulator: F32,
31 result: Result<&2, &1, Core.Error, Core.Tensor<shape> & F32>) -> Data:
32 match result:
33 case Fail{error}:
34 Unit
35 case Done{pair}:
36 (tensor, value) = pair
37 SumMeaning<fuel, shape, original, cursor, accumulator, value>