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

[0D Tensor] for dist.scatter and dist.broadcast #48638

Merged
merged 7 commits into from
Dec 5, 2022

Conversation

sljlp
Copy link
Contributor

@sljlp sljlp commented Dec 1, 2022

PR types

New features

PR changes

Others

Describe

Make API distribution.scatter support 0D tensor and add test for nccl
API distribution.broadcat already supports 0D tensor, only add test for nccl

@paddle-bot
Copy link

paddle-bot bot commented Dec 1, 2022

你的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.

@sljlp sljlp force-pushed the dim0-scatter branch 3 times, most recently from 9afa96f to 2067ae4 Compare December 2, 2022 05:26
@sljlp sljlp changed the title 0D for dist.scatter 0D Tensor for dist.scatter and dist.broadcast Dec 2, 2022
ut for nccl
@sljlp sljlp changed the title 0D Tensor for dist.scatter and dist.broadcast [0D Tensor] for dist.scatter and dist.broadcast Dec 2, 2022
@sljlp sljlp force-pushed the dim0-scatter branch 2 times, most recently from 7538891 to 19763f4 Compare December 2, 2022 13:59
Copy link
Contributor

@LiYuRio LiYuRio left a comment

Choose a reason for hiding this comment

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

LGTM

@sljlp sljlp merged commit 22ec915 into PaddlePaddle:develop Dec 5, 2022
@@ -34,6 +34,35 @@ void ConcatKernel(const Context& dev_ctx,
DenseTensor* out) {
int64_t axis = axis_scalar.to<int64_t>();

if (UNLIKELY(x[0]->dims().size() == 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

辛苦这里看下避免对paddle.concat的行为影响

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