-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
staleissues that have not been addressed in a while; categorized by a botissues that have not been addressed in a while; categorized by a bot
Description
Describe the issue
Bug Report
Error merging shape info for output.
Error message
[W:onnxruntime:, graph.cc:109 MergeShapeInfo] Error merging shape info for output. 'onnx::Add_15' source:{5,50,1} target:{1,5,50,1}. Falling back to lenient merge.To reproduce
-
Download model here shape_model.zip
-
Run the test script
import onnxruntime as rt
sess_options = rt.SessionOptions()
# Set graph optimization level
sess_options.graph_optimization_level = rt.GraphOptimizationLevel.ORT_ENABLE_EXTENDED
# To enable model serialization after graph optimization set this
sess_options.optimized_model_filepath = "opt_model.onnx"
session = rt.InferenceSession("model.onnx", sess_options)Notice:
-
sess_options.graph_optimization_level = rt.GraphOptimizationLevel.ORT_ENABLE_EXTENDED
→ error
-
sess_options.graph_optimization_level = rt.GraphOptimizationLevel.ORT_ENABLE_BASIC
→run well
Urgency
no response
Platform
Linux
OS Version
Ubuntu 12.04
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
Sc1b7cc
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleissues that have not been addressed in a while; categorized by a botissues that have not been addressed in a while; categorized by a bot