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

arm端opencl check model是pass的,但是结果就是和arm cpu跑出来的有误差 #462

Closed
banbishan opened this issue Oct 13, 2020 · 3 comments

Comments

@banbishan
Copy link

arm端opencl check model是pass的,但是结果就是和arm cpu跑出来的有误差,看着像fp16产生的,那如何在arm端opencl使用fp32呢

@neiltian-tencent
Copy link
Collaborator

误差很大吗?一般fp16可以满足精度要求,如果你需要跑fp32,可以NetworkConfig里面配置PRECISON为PRECISION_NORMAL, OPENCL会跑fp32。

@banbishan
Copy link
Author

banbishan commented Oct 19, 2020

误差很大吗?一般fp16可以满足精度要求,如果你需要跑fp32,可以NetworkConfig里面配置PRECISON为PRECISION_NORMAL, OPENCL会跑fp32。

肉眼看着,输出的第一个channel误差非常大,效果就是检测框连在一起,还有一小部分漏检
加上config.precision = tnn::PRECISION_NORMAL;这句就报了如下的错误,
image
不加,不会报错

@banbishan
Copy link
Author

这个issue合并到#480

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