Open ganler opened 2 years ago
Hmmm, you're right - just by hand computing the shapes of each operator, the output shape should have been [1, 5, 50, 1].
Need to check which graph optimization (or corresponding optimized kernel) causes this as this graph is a good example where many optimizations can kick in at the same time - ConstantFolding, MatMulTranspose, and MatMulAdd...
I am learning onnx model, I also encountered this problem, can anyone teach me how to disable all optimizations
Describe the bug MergeShape fails and ONNXRuntime returns results in a wrong shape with warnings below:
Urgency none
System information
To Reproduce
The bug-triggering sub-graph is attcahed: model.zip
Expected behavior This subgraph should return a shape of (1, 5, 50, 1) but actually (5, 50, 1).
Additional context This seems to be a optimization bug that if I disable all optimization the model can pass.