Please fill in the information below so that we can solve the problem quickly, Thanks !
Describe the bug
A clear and concise description of what the bug is.
ubuntu 24.04, python 3.12
我按照官方文档,安装的是 paddlepaddle 3.3
onnx 1.17.0
onnxruntime 1.26.0
paddle2onnx 2.1.0
paddleocr 3.5.0
paddlepaddle-gpu 3.3.0
paddlex 3.5.2
我导出推理模型后,需要转换成 onnx 格式。
命令:
paddle2onnx --model_dir PP-OCRv5_server_det_infer --model_filename inference.json --params_filename inference.pdiparams --save_file det.onnx --opset_version 19
出错信息:
[Paddle2ONNX] Start parsing the Paddle model file...
[Paddle2ONNX] Use opset_version = 19 for ONNX export.
2026-05-20 14:02:31 [ERROR] Failed to convert PaddlePaddle model: (Unimplemented) the 0th elementwise MUST be ir::FloatAttribute
[Hint: Expected array_list[0].isa<::pir::FloatAttribute>() == true, but received array_list[0].isa<::pir::FloatAttribute>():0 != true:1.] (at /github/workspace/paddle2onnx/parser/pir_parser.cc:814)
Informations (please complete the following information):
- Inference engine for deployment: paddleocr 3.5.0
- Why convert to onnx:在嵌入式设备上推理
- Paddle2ONNX Version: 2.1.0
- Email/Wechat/Phone: wooxz@hotmail.com
Screenshots
Additional context
Please fill in the information below so that we can solve the problem quickly, Thanks !
Describe the bug
A clear and concise description of what the bug is.
ubuntu 24.04, python 3.12
我按照官方文档,安装的是 paddlepaddle 3.3
onnx 1.17.0
onnxruntime 1.26.0
paddle2onnx 2.1.0
paddleocr 3.5.0
paddlepaddle-gpu 3.3.0
paddlex 3.5.2
我导出推理模型后,需要转换成 onnx 格式。
命令:
paddle2onnx --model_dir PP-OCRv5_server_det_infer --model_filename inference.json --params_filename inference.pdiparams --save_file det.onnx --opset_version 19
出错信息:
[Paddle2ONNX] Start parsing the Paddle model file...
[Paddle2ONNX] Use opset_version = 19 for ONNX export.
2026-05-20 14:02:31 [ERROR] Failed to convert PaddlePaddle model: (Unimplemented) the 0th elementwise MUST be ir::FloatAttribute
[Hint: Expected array_list[0].isa<::pir::FloatAttribute>() == true, but received array_list[0].isa<::pir::FloatAttribute>():0 != true:1.] (at /github/workspace/paddle2onnx/parser/pir_parser.cc:814)
Informations (please complete the following information):
Screenshots
Additional context