PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.93k stars 1.61k forks source link

RepSVTR可以使用paddlelite工具进行端化吗 #10538

Open 1878708493 opened 1 month ago

1878708493 commented 1 month ago

问题描述 / Problem Description

请问RepSVTR可以使用paddlelite工具转nb模型吗?我尝试做了一下,会报错: [F 7/18 18:53:41.205 ...e-Lite/lite/core/model/general/op_desc.h:118 GetAttr] Check failed: it != attrs().end(): No attributes called beta found for swish

运行环境 / Runtime Environment

复现代码 / Reproduction Code

paddle_lite_opt --model_file=./openatom_rec_svtrv2_ch_train_eval/inference.pdmodel --param_file=./openatom_rec_svtrv2_ch_train_eval/inference.pdiparams --optimize_out=./openatom_rec_svtrv2_ch_train_eval_opt --valid_targets=arm --optimize_out_type=naive_buffer

完整报错 / Complete Error Message

[F 7/18 18:53:41.205 ...e-Lite/lite/core/model/general/op_desc.h:118 GetAttr] Check failed: it != attrs().end(): No attributes called beta found for swish

可能解决方案 / Possible solutions

附件 / Appendix

zhupengyang commented 1 month ago

这个问题在develop分支上已经修复了。可以用develop分支重新编译下~