Skip to content

fix setitem grad bug #68790

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

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

zoooo0820
Copy link
Contributor

@zoooo0820 zoooo0820 commented Oct 17, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

This PR is similar to #68520 ; For advanced / combined setitem, if input Tensor's stop_gradient=True, the values grad will be lossed.

Advanced setitem case has been fixed at #65881
This PR is to

  1. fix Combined setitem mentioned above
  2. add unittests for input.stop_gradient=True/False in basic/advanced/combined setitem .

Pcard-67164

Copy link

paddle-bot bot commented Oct 17, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@CLAassistant
Copy link

CLAassistant commented Oct 17, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


chenjianye seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@zoooo0820 zoooo0820 closed this Oct 21, 2024
@zoooo0820 zoooo0820 reopened this Oct 21, 2024
Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit f5838c3 into PaddlePaddle:develop Oct 22, 2024
27 checks passed
@zoooo0820 zoooo0820 deleted the fix_setitem branch October 22, 2024 02:43
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