-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Paddle如何支持Resnet半精度推理? #64935
Comments
你好,关于fp16的resnet推理,请参考这个demo:https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master/c%2B%2B/gpu/gpu_fp16 |
大佬,只能用C++做推理吗?没有Python的API接口来进行推理吗? |
@vivienfanghuagood 大佬,这个问题还能解答一下吗,我发现这里没法跑fp16的原因应该是type不统一,python上详细的接口提供吗? |
有的,python端的demo: https://github.com/PaddlePaddle/Paddle-Inference-Demo/blob/master/python/gpu/resnet50/infer_resnet.py#L34 |
@vivienfanghuagood 感谢,可以转换出fp16的模型,但又有一个问题,我没法通过paddle.jit.load来加载这个模型吗:
报错如下:
看上去没反向信息就不能加载了 |
@vivienfanghuagood 感谢,已经没有问题了。 |
bug描述 Describe the Bug
请问一下paddle如何支持resnet半精度推理,我在代码中下载resnet相关模型及其权重后,加载模型转成fp16,想实现paddle原生半精度推理:
上述代码报错信息:
其他补充信息 Additional Supplementary Information
paddlepaddle-gpu 2.6.1.post117
The text was updated successfully, but these errors were encountered: