-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Semi-Auto] Add split infer_backward rule #56508
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 5873a5b's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
5873a5b
to
3d941fc
Compare
|
||
std::vector<TensorDistAttr> output_dist_attrs; | ||
for (int64_t i = 0; i < noutputs; i++) { | ||
output_dist_attrs.emplace_back(output_specs[i].dist_attr()); |
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.
problematic, if output tensor split_axis is sharded, it should be recover to replicated.
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.
Done
|
||
# num_or_sections = 2, axis = 1 | ||
# [0, -1, -1], [0, -1, -1] --> [0, -1, -1], [0, -1, -1], [0, -1, -1] | ||
# (outputs --> input, outputs) |
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.
lack case where one or multiple output tensors are sharded on split_axis.
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.
Done
3d941fc
to
15cd1ac
Compare
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
PR types
Function optimization
PR changes
Others
Description
Pcard-70448
Add infer_backward rule for split to infer inputs' dims mappings from outputs':