def plan_valid

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

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

30def plan_valid(-shape: Shape.Shape, -axes: List<&2, U32>, plan: Layout.Plan<shape, axes>) -> {True{} == Layout.bijective(shape, axes) : Bool}:
31  Layout.Permutation{output, valid, ordered, count} = plan
32  valid

Uses (6)

Used by (1)