def permutation_bounds_failure

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

import bendtorch-core@0.1.0.0/src/tensor/transform_PROOF.bend as TransformPROOF
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout

1569def permutation_bounds_failure(+input: Shape.Shape, +axes: List<&2, U32>,
1570  ranked: {True{} == Nat.is_eq(Shape.rank_dimensions(axes), Shape.rank_dimensions(Shape.dimensions(input))) : Bool},
1571  outside: {False{} == Layout.bounded(axes, Shape.rank(input)) : Bool}) ->
1572  {Layout.permutation(input, axes) == Fail{Layout.AxisOutOfBounds{}} : Result<&2, &2, Layout.Error, Layout.Plan<input, axes>>}:
1573  permutation_bounds_ranked_failure(input, axes,
1574    Shape.bool_case(Nat.is_eq(Shape.rank_dimensions(axes), Shape.rank_dimensions(Shape.dimensions(input)))), ranked, outside)

Uses (15)

Used by (1)