Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix the error of gradient of np.pad #19044

Merged
merged 7 commits into from
Sep 1, 2020
Merged

Conversation

ryanwentaoxu
Copy link
Contributor

@mxnet-bot
Copy link

Hey @cassinixu , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [sanity, unix-gpu, centos-cpu, edge, clang, unix-cpu, windows-cpu, centos-gpu, windows-gpu, miscellaneous, website]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

Copy link
Member

@sxjscience sxjscience left a comment

Choose a reason for hiding this comment

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

The gradient of padding is wrong in a very general way.

@sxjscience sxjscience dismissed their stale review August 30, 2020 21:12

Gradient of the the constant padding case is fixed.

@ryanwentaoxu
Copy link
Contributor Author

@mxnet-bot run ci [unix-cpu, windows-cpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [windows-cpu, unix-cpu]

@ryanwentaoxu
Copy link
Contributor Author

@mxnet-bot run ci [centos-cpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [centos-cpu]

@sxjscience
Copy link
Member

@ciyongch @szha Would you know if it's possible to backport the bug-fix to 1.7.x and 1.x?

@ciyongch
Copy link
Contributor

ciyongch commented Sep 7, 2020

Hi @sxjscience , thanks for reaching us for the issue, I'm afraid it's not able to be part of official 1.7.0 release as it's almost completed. But I think this fix should be fine to be backported into both 1.7.x and 1.x branches, and it's likely to be included in the next release (version: 1.8.0) which lead by @samskalicky .

sxjscience added a commit to sxjscience/mxnet that referenced this pull request Sep 17, 2020
* pad grad modified

* Fix pad grad error

* modify pad constant backward

* Fix test error

* Fix test error

* Fix kAddTo supported

* Add test for grad_req='add'

Co-authored-by: Xingjian Shi <xshiab@connect.ust.hk>
samskalicky pushed a commit that referenced this pull request Sep 17, 2020
* pad grad modified

* Fix pad grad error

* modify pad constant backward

* Fix test error

* Fix test error

* Fix kAddTo supported

* Add test for grad_req='add'

Co-authored-by: Xingjian Shi <xshiab@connect.ust.hk>

Co-authored-by: Wentao Xu <46397251+CassiniXu@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Numpy][Bug] The gradient of np.pad is wrong!
4 participants