Skip to content
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转换模型生成的ncnn模型shape不对,pnnx模型shape正确 #5810

Open
terrencew opened this issue Dec 3, 2024 · 0 comments
Open

Comments

@terrencew
Copy link

error log | 日志或报错信息 | ログ

model | 模型 | モデル

  1. original model

how to reproduce | 复现步骤 | 再現方法

  1. model.onnx 在百度网盘中
    链接:https://pan.baidu.com/s/1QEs6AcVZH4DhZH9kxIvVXA?pwd=7x8e
    提取码:7x8e
  2. 运行pnnx xxx.onnx inputshape=[1,3,384,640]
  3. 生成的ncnn模型最后shape不对,pnnx模型shape是对的
    ncnn第一个输出torch.Size([1, 2, 48, 80]), pnnx第一个输出torch.Size([1, 3840, 2])
    看上去是ncnn缺少了个permute和reshape操作
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant