-
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
[collective] dynamic shape for send_v2 and recv_v2 #42765
[collective] dynamic shape for send_v2 and recv_v2 #42765
Conversation
update the new_group in dygraph
你的PR提交成功,感谢你对开源项目的贡献! |
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
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
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
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 inference does not involve changes to the OpMaker in this PR.
PR types
New features
PR changes
Others
Describe
send_v2_op (cuda) 与 recv_v2_op (cuda) 修改如下:
修改 attribute,新增dynamic_shape属性(optional,默认值False),作为分布式训练send/recv是否使用动态shape的标识使用。
支持send_v2_op与recv_v2_op的动态shape支持。当设置dynamic_shape属性为True后,send op会首先发送tensor的shape之后再发送tensor。相应的recv op会先接受tensor的shape,并根据接受到的shape修改需要接受的tensor的shape,之后再进行tensor的接受。
support dynamic_shape for send/recv op for gpu training
add a new attr 'dynamic_shape' for both send_v2 and recv_v2, only support gpu with single tensor for now