Fix the error of gradient of np.pad#19044
Conversation
|
Hey @cassinixu , Thanks for submitting the PR
CI supported jobs: [sanity, unix-gpu, centos-cpu, edge, clang, unix-cpu, windows-cpu, centos-gpu, windows-gpu, miscellaneous, website] Note: |
Gradient of the the constant padding case is fixed.
|
@mxnet-bot run ci [unix-cpu, windows-cpu] |
|
Jenkins CI successfully triggered : [windows-cpu, unix-cpu] |
|
@mxnet-bot run ci [centos-cpu] |
|
Jenkins CI successfully triggered : [centos-cpu] |
|
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 . |
* 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 <[email protected]>
* 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 <[email protected]> Co-authored-by: Wentao Xu <[email protected]>
Fixes #19043
@sxjscience