-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[ORT 1.17 regression] AttributeError: 'NoneType' object has no attribute 'HasField' #19418
Comments
Smaller repro: & import onnxruntime
from onnxruntime.quantization import quantize_dynamic
quantize_dynamic(
model_input="/home/fxmarty/hf_internship/optimum/onnx_subgraphs/decoder_model_merged.onnx",
model_output="/home/fxmarty/hf_internship/optimum/onnx_subgraphs/decoder_model_merged_quantized.onnx",
per_channel=True,
op_types_to_quantize=['Conv', 'MatMul', 'Attention', 'LSTM', 'Gather', 'Transpose', 'EmbedLayerNormalization'],
extra_options={"EnableSubgraph": True}
) Edit: seems to me that |
As per title, fixes #19418 ONNX Runtime 1.17 broke the quantization of ONNX models with subgraphs where initializers are placed on the top-level graph, while different subgraphs use the same initializer.
As per title, fixes #19418 ONNX Runtime 1.17 broke the quantization of ONNX models with subgraphs where initializers are placed on the top-level graph, while different subgraphs use the same initializer.
Thanks for writing the issue. This issue is causing the error when exporting the quantized SAM model. Installing the old onnxruntime version solved the problem in our environment. |
Describe the issue
Hi, a test in our CI is failing with ORT 1.17 and not with previous ORT versions. I believe it is a regression.
The culprint is likely: #18043
To reproduce
fails with 1.17 while the test passes with previous versions:
Urgency
medium, will probably pin to onnxruntime<1.17 meanwhile
Platform
Linux
OS Version
Ubuntu 22.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.17.0
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: