-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
9afa96f
to
2067ae4
Compare
ut for nccl
7538891
to
19763f4
Compare
This reverts commit e40c51f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -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)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦这里看下避免对paddle.concat的行为影响
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