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

[Paddle TensorRT No.68] Modify the issue when validating model inference precision in FP16. #70168

Merged
merged 30 commits into from
Dec 17, 2024

Conversation

lizexu123
Copy link
Contributor

@lizexu123 lizexu123 commented Dec 12, 2024

PR Category

Inference

PR Types

Bug fixes

Description

card-71500
本pr

  • 修复了pd_op.gelu,之前采用通用plugin但是没写,现在以converter形式进入trt
  • 修复了pd_op.assign_value_,之前只能以静态shape进入trt
  • 修复了pd_op.flatten,现在能以全部方式进入trt

Copy link

paddle-bot bot commented Dec 12, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

YuanRisheng
YuanRisheng previously approved these changes Dec 16, 2024
layer_pow = trt_pow(network, input_val, constant_layer_pow)
layer_mul = trt_prod(network, layer_pow, constant_layer_multiply)
layer_add = trt_sum(network, layer_mul, input_val)
layer_sqrt = trt_prod(network, layer_add, constant_layer_sqrt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRT 8.6 应该已经支持add_activation设置成gelu的type

@lizexu123 lizexu123 merged commit fd811e5 into PaddlePaddle:develop Dec 17, 2024
28 checks passed
@lizexu123 lizexu123 changed the title [Paddle TensorRT] Modify the issue when validating model inference precision in FP16. [Paddle TensorRT No.68] Modify the issue when validating model inference precision in FP16. Dec 23, 2024
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

Successfully merging this pull request may close these issues.

3 participants