def construction_shape_dimensions
bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:42
import bendtorch-core@0.1.0.0/src/tensor/core_PROOF.bend as CorePROOF
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
42def construction_shape_dimensions(+dimensions: List<&2, U32>, values: List<&2, F32>, result: Shape.ConstructResult<dimensions>) ->
43 Core.ConstructionDimensions(dimensions, Core.construct_shape(dimensions, values, result)):
44 match result:
45 case Shape.SError{error}:
46 Unit{}
47 case Shape.SBuilt{+shape, preserved}:
48 construction_values_dimensions(dimensions, shape, preserved, Core.from_values(shape, values))