[Graph optimization] INVALID_GRAPH error returned by InferenceSession with offline optimization #23022
Labels
more info needed
issues that cannot be triaged until more information is submitted by the original user
Describe the issue
We tried to use offline optimization to reduce startup time as explained here:
https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html
But the initialization of the optimized model fails with INVALID_GRAPH error.
check_model returns the same error.
However, online optimization works fine.
To reproduce
The following error will be returned:
Urgency
We plan to deploy the model in Q2 2025.
With online graph optimization, it takes about 5 seconds to initialize the session, which is quite slow if we need to create the session frequently.
Platform
Windows
OS Version
10
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19.2
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: