def unflatten_spec
import bendtorch-core@0.1.0.0/src/shape/LAWS.bend as LAWSimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
85def unflatten_spec(+dims: List<&2, Nat>, index: Maybe<&2, Shape.Fin(Shape.numel(dims))>) -> Maybe<&2, List<&2, U32>>:
86 match index:
87 case None{}:
88 None{}
89 case Some{index}:
90 Some{Shape.words(Shape.indices(dims, Shape.unflatten(dims, index)))}
Uses (9)
Used by (5)
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:unflatten_checked
- bendtorch-core@0.1.0.0/src/shape/LAWS:unflatten_checked_refines
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:unflatten_verdict
- bendtorch-core@0.1.0.0/src/tensor/matmul_PROOF:unflatten_done
- bendtorch-core@0.1.0.0/src/tensor/matrix_index_proof:unflatten_at