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 batchnorm when inpu dims < 3 #31933

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

shangzhizhou
Copy link
Member

PR types

Bug fixes

PR changes

Others

Describe

fix trt batchnorm's shape error when input dim < 3

@paddle-bot-old
Copy link

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

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 8084b75 into PaddlePaddle:develop Mar 30, 2021
shangzhizhou added a commit to shangzhizhou/Paddle that referenced this pull request Mar 30, 2021
* fix batchnorm when inpu dims < 3

* add unittest for batchnorm dims = 2
@shangzhizhou shangzhizhou mentioned this pull request Mar 30, 2021
Superjomn pushed a commit that referenced this pull request Mar 30, 2021
* add n-d input support for trt scale converter (#31316)

* add n-d input support for trt scale converter

* add flatten for ut

* fix dims

* fix batchnorm when inpu dims < 3 (#31933)

* fix batchnorm when inpu dims < 3

* add unittest for batchnorm dims = 2

* fix unittest

Co-authored-by: Pei Yang <[email protected]>
@shangzhizhou shangzhizhou deleted the fix_batchnorm_shape branch April 8, 2021 13:13
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