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

fix tensorrt output shape error #29308

Merged
merged 3 commits into from
Dec 3, 2020

Conversation

shangzhizhou
Copy link
Member

@shangzhizhou shangzhizhou commented Dec 2, 2020

PR types

Bug fixes

PR changes

Others

Describe

TensorRT动态shape会改变输出的shape(增加N个x1),当前的处理方式是直接remove shape结尾的x1,这样会把正常的非自动补充的1错误的去掉,增加参考原始graph中输出变量的维度, 防止多删除造成的shape出错。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Dec 2, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

cryoco
cryoco previously approved these changes Dec 2, 2020
Copy link
Contributor

@cryoco cryoco left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@cryoco cryoco left a comment

Choose a reason for hiding this comment

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

LGTM

@shangzhizhou shangzhizhou merged commit ebf6891 into PaddlePaddle:develop Dec 3, 2020
@shangzhizhou shangzhizhou deleted the fix_tensorrt_shape branch December 3, 2020 09:14
shangzhizhou added a commit to shangzhizhou/Paddle that referenced this pull request Dec 3, 2020
* fix tensorrt output shape error

* fix unittest tensorrt_engine_op_test

* fix code style for unitest
shangzhizhou added a commit to shangzhizhou/Paddle that referenced this pull request Dec 3, 2020
* fix tensorrt output shape error

* fix unittest tensorrt_engine_op_test

* fix code style for unitest
shangzhizhou added a commit that referenced this pull request Dec 3, 2020
* fix tensorrt output shape error

* fix unittest tensorrt_engine_op_test

* fix code style for unitest
shangzhizhou added a commit that referenced this pull request Dec 4, 2020
* fix tensorrt output shape error

* fix unittest tensorrt_engine_op_test

* fix code style for unitest
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.

2 participants