首页 Paddle Lite 帖子详情
These unsupported ops are: 'softplus'
收藏
快速回复
Paddle Lite 问答部署端侧 1446 3
These unsupported ops are: 'softplus'
收藏
快速回复
Paddle Lite 问答部署端侧 1446 3

错误如题,我在使用paddlex训练出模型后,使用paddleLite进行优化生成nb文件时,报了如下错误。求助各位大佬

This model is not supported, because 1 ops are not supported on 'arm'. These unsupported ops are: 'softplus'

paddleLite文件内容:

# 引用Paddlelite预测库
from paddlelite.lite import *

# 1. 创建opt实例
opt=Opt()
# 2. 指定输入模型地址 
opt.set_model_dir("./kunchong2/inference_model/inference_model")
# 3. 指定转化类型: arm、x86、opencl、npu
opt.set_valid_places("arm")
# 4. 指定模型转化类型: naive_buffer、protobuf
opt.set_model_type("naive_buffer")
# 4. 输出模型地址
opt.set_optimize_out("mobilenetv1_opt")
# 5. 执行模型优化
opt.run()
0
收藏
回复
全部评论(3)
时间顺序
beyondyourself
#2 回复于2022-02

说明ARM目前不支持算子softplus,看看能不能更换其他试试

0
回复
吾心安处_world
#3 回复于2022-02
说明ARM目前不支持算子softplus,看看能不能更换其他试试

其他的也都有各种不支持,主要我过年前还好好的 什么都没变,过年后来就不行了。。。 我更新了paddleLite版本到最新的

0
回复
beyondyourself
#4 回复于2022-02

建议版本还是用之前的,可能最新的对于其他的Op适配还不全

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户