def sum_loop
bendtorch-core@0.1.0.0 · src/tensor/reduction.bend:49
import bendtorch-core@0.1.0.0/src/tensor/reduction.bend as Reduction
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
49def sum_loop(fuel: Nat, -shape: Shape.Shape, tensor: Core.Tensor<shape>, +index: U32,
50 accumulator: F32) -> Result<&2, &1, Core.Error, Core.Tensor<shape> & F32>:
51 natural_sum_loop(fuel, shape, tensor, U32.to_nat(index), accumulator)