-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[numeric][cpu]: numeric error for ONNX Gather operator element at index 200 (0.420379) does not match the expected (0.642927); #18273
Comments
There might be a codegen issue here, but fact that not dropping to i32 makes the error go away seems to suggest this is not a codegen issue. It is in general not "safe" to truncate fully like this, but can be done if we know the inputs are within the 32 bit range. @lialan start by seeing if there is any IR difference between the 32-bit and 64-bit compilation paths for this example. |
They both generate same structure of LLVM IR, except: In the demote path, generated IR contains a load of
while in the normal path:
In both paths,
vs
Suspect this caused the issue. |
Can you post the two IRs |
Attaching dumped IR files. This one enables This one does not have the option and works fine: |
Looking at the IR, it doesnt look like a compilation failure. I dont know what the values of inputs you are sending in here. Should make sure that it is safe to demote from i64 to i32. At this point, I dont really see a codegen issue. |
@pdhirajkumarprasad up signalling. This doesn't look like a compiler error. Could we close it? |
Model works fine without the flag |
What happened?
For the given IR
We are seeing numeric mismatch
IREE version:
IREE compiler version 20240819.990 @ aeda149
LLVM version 20.0.0git
Steps to reproduce your issue
Command to reproduce the issue:
This issue is coming due to presence of --iree-input-demote-i64-to-i32. If I remove this then I am 100% match
golden_output.0.bin.txt
input.0.bin.txt
input.1.bin.txt
What component(s) does this issue relate to?
Runtime
Version information
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: