P1673's transposed doesn't have special cases for P2642's layout_left_padded and layout_right_padded. As a result, transposed will return layout_transpose of these layouts, even though those layouts are more specialized than layout_stride and could thus easily have special cases.
P1673 used to have special cases for these two layouts, until the two layouts were moved from P1673 to P2642.
Add
transposed
special cases for P2642 layoutsProblem
P1673's
transposed
doesn't have special cases for P2642'slayout_left_padded
andlayout_right_padded
. As a result,transposed
will returnlayout_transpose
of these layouts, even though those layouts are more specialized thanlayout_stride
and could thus easily have special cases.P1673 used to have special cases for these two layouts, until the two layouts were moved from P1673 to P2642.
Suggested fix
Add special cases to [linalg.transp.transposed], paragraphs 3 and 4.