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

[Prim][PIR] Support dynamic shape for scatter_grad and add the comp detection for all the backward dynamic shape test case #68168

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

zeroRains
Copy link
Contributor

@zeroRains zeroRains commented Sep 12, 2024

PR Category

Operator Mechanism

PR Types

New features

Description

为scatter_grad 添加动态shape支持,添加scatter_nd_add_grad的动态shape单测,为所有反向动态shape测试添加拆解检测

Copy link

paddle-bot bot commented Sep 12, 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.

@paddle-bot paddle-bot bot added the contributor External developers label Sep 12, 2024


class TestPrimBatchNormWithGrad3(TestPrimThreeWithGrad):
def setUp(self):
np.random.seed(2023)
self.op_name = "pd_op.batch_norm_grad_"
Copy link
Contributor

Choose a reason for hiding this comment

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

这个地方是不是写错了 应该是batch_norm__grad

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个地方笔误了,应该就是pd_op.batch_norm_grad,他算子名只有前向是有下划线的,反向的话应该就是这个pd_op.batch_norm_grad

Copy link
Contributor Author

@zeroRains zeroRains Sep 13, 2024

Choose a reason for hiding this comment

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

这个应该问题不大,之前我打印出来是拆解了的,可以先合入,然后我在#68076 这个PR里再一起修改

@xiaoguoguo626807 xiaoguoguo626807 merged commit a40ea5e into PaddlePaddle:develop Sep 13, 2024
29 of 30 checks passed
@zeroRains zeroRains deleted the scatter branch September 13, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants