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导致Sherpa - encoder结果异常 #4878

Closed
Baiyuetribe opened this issue Jul 26, 2023 · 4 comments
Closed

升级NCNN导致Sherpa - encoder结果异常 #4878

Baiyuetribe opened this issue Jul 26, 2023 · 4 comments

Comments

@Baiyuetribe
Copy link
Contributor

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

2023.05-17版输出正常:

encoder_out --> w:384,h:8,c:1

2023.07-master输出异常

encoder_out --> w:384,h:384,c:1   // 此处h异常

context | 编译/运行环境 | バックグラウンド

纯cpu推理,windows amd64mac m2均可复现

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

在文件https://github.com/k2-fsa/sherpa-ncnn/blob/master/sherpa-ncnn/csrc/zipformer-model.cc第123行添加
printf("encoder_out --> w:%d,h:%d,c:%d\n",encoder_out.w,encoder_out.h,encoder_out.c);

@nihui
Copy link
Member

nihui commented Aug 9, 2023

confirmed
since 9022b71

@nihui
Copy link
Member

nihui commented Aug 9, 2023

这里 k2-fsa/sherpa-ncnn#252 提供了修改方法

@Baiyuetribe
Copy link
Contributor Author

感谢nihui 😸 , 实测修改encoder后有效。

@nihui
Copy link
Member

nihui commented Aug 10, 2023

#4930 兼容性回归!

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

2 participants