onnxruntime errors out due to ORT_ENABLE_EXTENDED optimization: Can't remove node Transpose as it still has output edges. #24137
Labels
core runtime
issues related to core runtime
stale
issues that have not been addressed in a while; categorized by a bot
Expected behavior
onnxruntime can run the model when using the optimization ORT_ENABLE_EXTENDED.
Actual behavior
When using the optimization ORT_ENABLE_EXTENDED, onnxruntime crashes.
To reproduce
Environment
OS: Ubuntu 20.04
onnxruntime: 1.22.0.dev20250320003
Steps to reproduce
This bug can be reproduced by the following code with the model in the attachment. For the model, it can be correctly checked by onnx.checker.check_model. However, if we replace ORT_ENABLE_EXTENDED with ORT_ENABLE_BASIC, every thing is ok.
model.zip
Urgency
No response
Platform
Linux
OS Version
Ubuntu 20.04
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.22.0.dev20250320003
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: