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

Add elementwise_add into Paddle-TRT NHWC support #56795

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

leo0519
Copy link
Collaborator

@leo0519 leo0519 commented Aug 30, 2023

PR types

New features

PR changes

Others

Description

For NHWC ResNet50 model, there are several elementwise_add OPs, but Paddle-TRT NHWC IR pass does not support these OP.

This PR adds elementwise_add support into NHWC IR pass, and also updates the unit test.

@paddle-bot
Copy link

paddle-bot bot commented Aug 30, 2023

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Aug 30, 2023
@leo0519 leo0519 added NVIDIA and removed contributor External developers labels Aug 30, 2023
@yuanlehome
Copy link
Contributor

yuanlehome commented Aug 30, 2023

Hi,感谢您提交此优化PR,对于您在PR描述里说的 Before : transpose -> conv2d -> (transpose -> transpose) -> batch_norm -> transpose -> relu -> transpose -> conv2d -> transpose,我理解应该不是这样子,应该是 Before : transpose -> conv2d -> batch_norm -> relu -> conv2d -> transpose。这个PR下还麻烦您补充下单测,通过手动组网保存模型后测试并贴出pass转化前后的graph看一下,谢谢。我会持续关注此PR。

Verified

This commit was signed with the committer’s verified signature.
suemto suem
@leo0519 leo0519 changed the title Add graph level optimization into TRT NHWC IR Add elementwise_add into Paddle-TRT NHWC support Aug 30, 2023
@leo0519
Copy link
Collaborator Author

leo0519 commented Aug 30, 2023

Hi @yuanlehome , 後來發現是因為 elementwise_add 不在白名單內 (需求模型為 ResNet50),因此修改本 PR 的標題和敘述,再麻煩你 review 一下,謝謝。

Copy link
Contributor

@yuanlehome yuanlehome left a comment

Choose a reason for hiding this comment

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

LGTM

@paddle-bot paddle-bot bot added the contributor External developers label Aug 30, 2023
@heavengate heavengate merged commit 97b09e8 into PaddlePaddle:develop Aug 31, 2023
BeingGod pushed a commit to BeingGod/Paddle that referenced this pull request Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers NVIDIA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants