def compatible_plans

stelliferous@0.0.2.0 · tensor_band_concat.bend:46

import stelliferous@0.0.2.0/tensor_band_concat.bend as TensorBandConcat
import Base
import stelliferous@0.0.2.0/tensor_band.bend as Bands

46# Reuse the existing metadata traversal to classify the common band path.
47# Mixed representations and different plans use the dense concat caller.
48def compatible_plans(first: Maybe<&2,Bands.Plan>,rest: Maybe<&2,Bands.Plan>) -> Bool:
49  match first rest:
50    case Some{first} Some{rest}: Bands.same_plan(first,rest)
51    case first rest: False{}

Uses (4)

Used by (1)