Closed negiyas closed 1 year ago
Have confirmed that this issue is fixed by PR#2158 ( https://github.com/onnx/onnx-mlir/pull/2158 ).
@negiyas thanks for confirming, much appreciated. Note that @2158 is itself subsumed by #2161; I have checked that that PR solve the problem listed in #2158, so I am pretty sure it will work for this PR as well.
Error similar to #2150 occurs occurs while compiling bidaf-9 by
onnx-mlir -mcpu=z14 --EmitMLIR bidaf-9.onnx
. Patch is needed to avoid #2153, before compilation (see below).How to reproduce this issue. (1) Patch the following diff to avoid issue#2153.
(2) Build onnx-mlir (3) Compile bidaf-9.onnx ( https://github.com/onnx/models/blob/main/text/machine_comprehension/bidirectional_attention_flow/model/bidaf-9.onnx ) by onnx-mlir as follows.
The situation The second krnl.load in the following loop
%463 = krnl.load %alloc_216[%461#0, %461#1] : memref<1xf32>
is invalid, because the krnl.load of has two indices, but the memref rank is one (The rank should be two).