You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shape not supported yet!
Unknown data type 0
Shape not supported yet!
Cast not supported yet!
to=6
Cast not supported yet!
to=7
Unknown data type 0
Unsupported transpose type !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unknown data type 0
Shape not supported yet!
Cast not supported yet!
to=6
Cast not supported yet!
to=7
Unknown data type 0
Unsupported transpose type !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unknown data type 0
Describe the bug
paddle2onnx : 1.0.6
onnxsim : 0.4.35
Steps:
paddle2onnx --model_dir ./ch/ch_PP-OCRv4_rec_infer ^
--model_filename inference.pdmodel ^
--params_filename inference.pdiparams ^
--save_file ./ch/rec_onnx/model.onnx ^
--opset_version 11 ^
--input_shape_dict="{'x':[-1,3,-1,-1]}" ^
--enable_onnx_checker True
python -m onnxsim model.onnx out_simple.onnx
The output still exist layers
Reshape | 6 | 6
Shape | 4 | 3
onnx2ncnn.exe ch_PP-OCRv4_rec_simple.onnx out.param out.bin
Error messages:
Shape not supported yet!
Unknown data type 0
Shape not supported yet!
Cast not supported yet!
to=6
Cast not supported yet!
to=7
Unknown data type 0
Unsupported transpose type !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unknown data type 0
Shape not supported yet!
Cast not supported yet!
to=6
Cast not supported yet!
to=7
Unknown data type 0
Unsupported transpose type !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unsupported squeeze axes !
Unknown data type 0
Model
Model link, link of the document.
The text was updated successfully, but these errors were encountered: