Open Max191 opened 4 weeks ago
For context, I actually added this patch as a means to resolve an issue when unrolling loops for other tests see https://github.com/iree-org/iree/pull/18867#discussion_r1811101655.
In my opinion, it seems bad to indiscriminately unroll loops in the IR, so something actually needs to be addressed in the test examples. Why do the batched examples of TFIDF fail, but the unbatched ones pass?
It seems like IREE fails to handle arith.sitofp : i64 -> f64
when the input is the result of an scf.for
loop, but not when those loops are unrolled?
For operations like this, I don't expect the result to be performant, but I just don't know what the constraints are from the IREE side. Do we straight up disallow any scalar scf loops?
Maybe this comment from Ben is related: https://github.com/iree-org/iree/issues/18268#issuecomment-2305306785
There were 3 new test failures after pulling in a torch-mlir patch: https://github.com/llvm/torch-mlir/commit/55ff110dc29cab7e2495ccdbec9a60512c29c665
The following tests failed:
The patch is reverted in IREE for now, so to reproduce the failures, use this branch that has the patch reapplied: https://github.com/Max191/iree/tree/onnx-cpu-unrolling-fail