def shaped
bendtorch-core@0.1.0.0 · src/tensor/slice.bend:180
import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice
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
180def shaped(+plan: Plan, -dimensions: List<&2, U32>, built: Shape.ConstructResult<dimensions>) -> Result<&2, &2, Error, Planned>:
181 match built:
182 case Shape.SError{error}:
183 Fail{TensorError{Core.ShapeError{error}}}
184 case Shape.SBuilt{+shape, preserved}:
185 Done{Planned{plan, shape}}