onnxruntime_backend
onnxruntime_backend copied to clipboard
Model failed to create because of output dimensions
I am testing 'text_recognition' model with output shape [1,26,37].
My config file is set as
name: "text_recognition"
platform: "onnxruntime_onnx"
max_batch_size : 256
input [
{
name: "input.1"
data_type: TYPE_FP32
dims: [ 1, 32, 100 ]
}
]
output [
{
name: "307"
data_type: TYPE_FP32
dims: [ -1, 26, 37 ]
}
]
But the error is ERROR: Failed to create instance: model 'text_recognition', tensor '307': for the model to support batching the shape should have at least 1 dimension and the first dimension must be -1; but shape expected by the model is [1,26,37]
.
How to solve error?