PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.89k stars 1.6k forks source link

arm的推理结果正确,opencl的结果不正确,请问如何做逐层的精度对比分析? #10503

Closed lg920810 closed 2 months ago

lg920810 commented 2 months ago

已使用opencl fp32进行推理

zhupengyang commented 2 months ago

PaddleLite-generic-demo_v2_12_0.tar.gz 解压后用 tools/model_utilities/insert_print_op.py 可以在模型中插入 print op 打印特定层的结果,可以用这个方式对比 arm 和 opencl 的精度

lg920810 commented 2 months ago

PaddleLite-generic-demo_v2_12_0.tar.gz 解压后用 tools/model_utilities/insert_print_op.py 可以在模型中插入 print op 打印特定层的结果,可以用这个方式对比 arm 和 opencl 的精度

好的,感谢