Open banach-space opened 1 month ago
If it matches https://github.com/openxla/xla/blob/f292b892846960fff42e0e9c11f9a96f22723bd7/xla/mlir_hlo/mhlo/transforms/legalize_to_linalg/legalize_to_linalg.cc#L2924 then it may be an export error (could still be lowering to linalg failure - also the surprised the named Linalg op doesn't have proper defaults for these).
The logic in IREE is almost identical:
surprised the named Linalg op doesn't have proper defaults for these
indeed
IREE SHA: d792d2483a9d5d875a0f03b57c9d4f98e072c300
Reproducer
Input extracted from ResNet. I imported it to StableHLO following https://openxla.org/stablehlo/tutorials/jax-export:
Run:
Analysis Based on the stack trace, this example hit's an assert when running
mlir::linalg::Conv2DNhwcHwcfOp::build
. Assert message:I'm not familiar with StableHLO, so I'm not sure whether:
Reporting in case this is a genuine IREE issue worth addressing.
My "daft" Workaround