def created_size

bendtorch-core@0.1.0.0 · src/tensor/read_contract.bend:29

import bendtorch-core@0.1.0.0/src/tensor/read_contract.bend as ReadContract
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
import bendtorch-core@0.1.0.0/src/tensor/word_conversion.bend as Conversion

29def created_size(+shape: Shape.Shape, +fill: F32) -> {StorageLaws.size(StorageLaws.created(Shape.count(shape), fill)) == U32.to_nat(Shape.count(shape)) : Nat}:
30  StorageLaws.replay_size(Shape.count(shape), fill, [], Conversion.shape_count_within(shape))

Uses (10)

Used by (2)