law empty_sum_identity
import bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS.bend as ReductionLAWSimport 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
160law empty_sum_identity:
161 for +shape: Shape.Shape
162 for tensor: Core.Tensor<shape>
163 for empty: {Shape.logical_numel(Shape.dimensions(shape)) == 0n : Nat}
164 {Reduction.sum_observation(shape, Reduction.sum(shape, tensor)) == Some{0.0} : Maybe<&2, F32>}
Uses (14)
Used by (0)
No other definition uses this definition.