• Nick Korovaiko's avatar
    Extend concat elimination to fold slice + reshape (#1511) · b9017681
    Nick Korovaiko authored
    * extend concat elimination to fold slice + reshape
    
    * relax branch tip to be anything not just goe
    
    * add support for transpose when concat of slice + reshape occurred on internal axis.
    
    * simplify reshape order permutation
    
    * multi-axis slice + concat do not cancel and are now disabled. generalize detection of axis reordering when intermediate reshape is present
    to include logical reshape and reshape that results in axis reordering for the cases: parent_shape.size gt, eq, and lt concat_shape.size.
    
    * check that slices are in order
    
    * add one user check on reshape
    
    * add more checks
    
    * fix warnings
    
    * Reshape axis order did not include enough dimensions when the transposed and reshaped result was of lower rank.
    b9017681
algebraic_simplification.cpp 23.8 KB