Description
Describe the issue
In onnxruntime_perf_test tool, -f is used to override free dimensions for dynamic input shape, it works well when optimization level is set to > 0. When optimization level is set to 0 and running onnxruntime_perf_test.exe with -f parameter to collect performance data, there is a hint: Overriding dimension with name
, it seems that the free dimension is set successfully, but in fact it will not work.
In GenerateTransformers
function of graph_transformer_utils.cc, FreeDimensionOverrideTransformer
will only be added in optimization level > 0. So the message Overriding dimension with name
is confusing and there is no way to override the free dimensions only if optimization level is set to 0. In some performance data collecting, we only need to fix the free dimensions.
To reproduce
Use onnxruntime_perf_test.exe -I -r 10 -o 0 -f batch_size:2 -f sequence:77 sd-v1.5-text-encoder.onnx
to test the dynamic shape model.
Urgency
No response
Platform
Windows
OS Version
Windows1 11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.22.0
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
Model File
No response
Is this a quantized model?
No