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

修复最新ncnn推理错误的问题 #252

Open
nihui opened this issue Aug 9, 2023 · 0 comments
Open

修复最新ncnn推理错误的问题 #252

nihui opened this issue Aug 9, 2023 · 0 comments

Comments

@nihui
Copy link
Contributor

nihui commented Aug 9, 2023

关联 Tencent/ncnn#4878

zipformer-encoder 末尾这里
红框这个 BinaryOp 的输入,一边是 3 维 w=160 h=2 c=8,一边是 1 维 w=160,这不适用于 ncnn 的 implicit broadcast https://github.com/Tencent/ncnn/wiki/binaryop-broadcasting

需要修改 MemoryData 为 3 维,修改后新旧ncnn都可以兼容

MemoryData               downsample_output        0 1 2026 0=160

修改为

MemoryData               downsample_output        0 1 2026 0=160 1=1 2=1

图片

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