You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to convert the conv2d operator from mhlo to linalg dialect. It seems like that it can't process the situation when the layout of conv2d is NCHW.
The mhlo dialect of conv2d.mlir is shown below:
I use "./mlir-hlo-opt ./conv2d.mlir -hlo-legalize-to-linalg -o conv2d_linalg.mlir" to do the transformation.
I traced the workflow and found out when it checks "HasCanonicalDimensionNumbers()", it returns false. legalize_to_linalg.cc
I want to convert the conv2d operator from mhlo to linalg dialect. It seems like that it can't process the situation when the layout of conv2d is NCHW.
The mhlo dialect of conv2d.mlir is shown below:
I use "./mlir-hlo-opt ./conv2d.mlir -hlo-legalize-to-linalg -o conv2d_linalg.mlir" to do the transformation.
I traced the workflow and found out when it checks "HasCanonicalDimensionNumbers()", it returns false.
legalize_to_linalg.cc
The text was updated successfully, but these errors were encountered: