def ConstructionDimensions

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

import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

429def ConstructionDimensions(+dimensions: List<&2, U32>, result: Result<&2, &1, Error, Dynamic>) -> Type:
430  match result:
431    case Fail{error}:
432      Unit
433    case Done{Packed{+shape, tensor}}:
434      {Shape.dimensions(shape) == dimensions : List<&2, U32>}

Uses (7)

Used by (3)