You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
removes Q-DQ nodes around Resize and thus makes the Resize compute in int8.
This might be fine for nearest interpolation mode, but in linear interpolation mode it changes the numeric output values.
The mismatch does not happen when using sess_options.graph_optimization_level = onnxruntime.GraphOptimizationLevel.ORT_DISABLE_ALL.
onnx.reference [[[[0. 0. 1. 1.]]]]
onnxruntime [[[[0. 0. 0. 1.]]]]
AssertionError:
Not equal to tolerance rtol=0.001, atol=0.001
If you look at opt.onnx, you see that the model has been transformed into
which is invalid because the linear interpolation cannot be done correctly in int8.
Urgency
No response
Platform
Linux
OS Version
Ubuntu 22.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.1
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:
Describe the issue
The optimization in
onnxruntime/onnxruntime/core/optimizer/qdq_transformer/selectors_actions/qdq_selector_action_transformer.cc
Line 58 in 88336ff
removes Q-DQ nodes around Resize and thus makes the Resize compute in int8.
This might be fine for nearest interpolation mode, but in linear interpolation mode it changes the numeric output values.
The mismatch does not happen when using
sess_options.graph_optimization_level = onnxruntime.GraphOptimizationLevel.ORT_DISABLE_ALL
.To reproduce
shows a numeric mismatch:
If you look at
opt.onnx
, you see that the model has been transformed intowhich is invalid because the linear interpolation cannot be done correctly in int8.
Urgency
No response
Platform
Linux
OS Version
Ubuntu 22.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.1
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: