def shaped

bendtorch-core@0.1.0.0 · src/tensor/gather.bend:130

import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gather
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

130def shaped(+plan: Plan, -dimensions: List<&2, U32>, built: Shape.ConstructResult<dimensions>) -> Result<&2, &2, Error, Planned>:
131  match built:
132    case Shape.SError{error}:
133      Fail{TensorError{Core.ShapeError{error}}}
134    case Shape.SBuilt{+shape, preserved}:
135      Done{Planned{plan, shape}}

Uses (8)

Used by (3)