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 pad and concat double grad #29549

Merged
merged 5 commits into from
Dec 16, 2020
Merged

Conversation

ceci3
Copy link
Contributor

@ceci3 ceci3 commented Dec 10, 2020

PR types

New features

PR changes

OPs

Describe

add double grad for pad
add double grad for concat

@paddle-bot-old
Copy link

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

@ceci3 ceci3 force-pushed the style_double_grad branch from 5131e6a to e49b185 Compare December 10, 2020 08:55
@ceci3 ceci3 changed the title add constant pad double grad add pad and concat double grad Dec 10, 2020
@ceci3 ceci3 force-pushed the style_double_grad branch from 82387c3 to bd175e2 Compare December 14, 2020 10:50
def func(self, place):
x_shape = [2, 3, 4, 5]
pad = [1, 1, 1, 1]
eps = 0.005
Copy link
Contributor

Choose a reason for hiding this comment

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

pad可以不设置eps吧

Copy link
Contributor Author

@ceci3 ceci3 Dec 14, 2020

Choose a reason for hiding this comment

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

pad 不需要.. 但是paddle.nn.pad这个op里有squeeze/unsqueeze这些操作.. 这些需要设置eps..

@ceci3 ceci3 force-pushed the style_double_grad branch 2 times, most recently from fb2d9c4 to 62d05af Compare December 14, 2020 12:18
@ceci3 ceci3 force-pushed the style_double_grad branch from 62d05af to e8bbb19 Compare December 14, 2020 13:13
@ceci3 ceci3 merged commit cc38715 into PaddlePaddle:develop Dec 16, 2020
@ceci3 ceci3 deleted the style_double_grad branch December 16, 2020 13:06
XiaoguangHu01 pushed a commit that referenced this pull request Jan 18, 2021
* add pad and concat double grad

* resolve conflict
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