law empty_accumulation

bendtorch-core@0.1.0.0 · src/tensor/reduction_LAWS.bend:153

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
import bendtorch-core@0.1.0.0/src/tensor/reduction.bend as Reduction

153law empty_accumulation:
154  for -shape: Shape.Shape
155  for tensor: Core.Tensor<shape>
156  for +index: U32
157  for accumulator: F32
158  {Reduction.sum_loop(0n, shape, tensor, index, accumulator) == Done{(tensor, accumulator)} : Result<&2, &1, Core.Error, Core.Tensor<shape> & F32>}

Uses (9)

Used by (0)

No other definition uses this definition.