Describe the bug
I trained an ocr model with paddlepaddle-2.6, and export the model to onnx, then I convert the original onnx model to ncnn, it reported error:
Shape not supported yet!
Tile not supported yet!
Shape not supported yet!
Tile not supported yet!
so, i try to use the python3 -m onnx2sim src.onnx sim.onnx to simplifier the onnx model, and it shows as below,
Your model contains "Tile" ops or/and "ConstantOfShape" ops. Folding these ops can make the simplified model much larger. If it is not expected, please specify "--no-large-tensor"(which will lose some optimization chances)
the table show that the shape ops from 2 to 1, the tile ops from 2 to 1, not we expect the 0.
and the convert error is not eliminated when convert the simplified onnx model to ncnn with onnx2ncnn tool.
Describe the bug I trained an ocr model with paddlepaddle-2.6, and export the model to onnx, then I convert the original onnx model to ncnn, it reported error:
so, i try to use the
python3 -m onnx2sim src.onnx sim.onnx
to simplifier the onnx model, and it shows as below,Your model contains "Tile" ops or/and "ConstantOfShape" ops. Folding these ops can make the simplified model much larger. If it is not expected, please specify "--no-large-tensor"(which will lose some optimization chances)
the table show that the shape ops from 2 to 1, the tile ops from 2 to 1, not we expect the 0. and the convert error is not eliminated when convert the simplified onnx model to ncnn with onnx2ncnn tool.
Model https://drive.google.com/file/d/1ixsUIE3rwwUzmldavvZHr5TxtmBKg94r/view?usp=sharing