src/tensor/from_values_contract_LAWS.bend source
src/tensor/from_values_contract_LAWS.bend on the hub · documented module
import Baseimport ../shape/core.bend as Shapeimport ./from_values_records.bend as Recordslaw from_values_contract: for +shape: Shape.Shape for +values: List<&2, F32> for counted: {List.length(&2, F32, values) == Shape.logical_numel(Shape.dimensions(shape)) : Nat} Records.FromValuesContract<shape, values>