law core_new_complete
import bendtorch-core@0.1.0.0/src/tensor/allocation_LAWS.bend as AllocationLAWSimport Base
import bendtorch-core@0.1.0.0/src/tensor/allocation_spec.bend as Allocation
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
37law core_new_complete:
38 for +shape: Shape.Shape
39 for +fill: F32
40 {Allocation.tensor_length(shape, Core.new(shape, fill)) == Some{Shape.logical_numel(Shape.dimensions(shape))} : Maybe<&2, Nat>}
Uses (9)
Used by (0)
No other definition uses this definition.