-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
加载 PNNX 导出的模型时出现 layer aten::exp not exists or registered #4101
Comments
我在YOLOv6n通过 |
还是自己看代码,自己解决吧 |
大佬们解决了吗,我也遇到了这个问题 |
这个要修改 pnnx 的源代码. pnnx 目前不支持 把 aten::exp 转成 ncnn 中的 UnaryOp. |
你可以参考 csukuangfj#1 这个,添加对 但是,可能在转换的过程中,你的模型里面,还有 pnnx 未支持的 op, 你自己还要再改 pnnx 的源代码. |
你好,请问你后来解决了吗,yolov6n能部署到安卓上吗 |
这是我的处理方式: https://github.com/DataXujing/ncnn_android_yolov6#1%E6%A8%A1%E5%9E%8B%E8%BD%ACncnn |
非常感谢!我去试试!!! |
您好,打扰啦~请问为什么最后生成的是四个文件呢yolov6n.param,yolov6n.bin,yolov6_opt.param和yolov6n_opt.bin,之前在Android studio部署中见过前两个,请问yolov6_opt.param和yolov6n_opt.bin是什么呢,是如何调用的呢 |
aten::exp 支持了 |
error log | 日志或报错信息 | ログ
model | 模型 | モデル
针对 https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/pruned_transducer_stateless2/decoder.py
当使用
torch.jit.trace()
时,可以成功导出成 torchscript model, 命名为decoder_jit_trace.pt
.how to reproduce | 复现步骤 | 再現方法
源码编译 master 分支的 PNNX, 然后运行:
生成如下文件:
decoder_jit_trace.ncnn.param
的内容如下:然后使用从 master 编译的python 版本 ncnn 读取上面生成的 ncnn 模型
会出现如下错误:
然后就是
Segmentation fault
针对 https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/pruned_transducer_stateless2/conformer.py
重复上面的方法,会出现如下错误:
导致上述错误的
param
文件,部分内容如下:(注意,在下半部分出现了
pnnx.Expression pnnx_expr_2155 1 1 21 23
)The text was updated successfully, but these errors were encountered: