-
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
[Reshard] Support partial to shard #58703
Conversation
c9d5b45
to
90032b3
Compare
if (out_split_axis != 0) { | ||
std::vector<int> axis; | ||
for (size_t i = 1; i < vectorize(logical_ddim).size(); ++i) { | ||
axis.emplace_back(i); |
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.
Whether the axis here is the same as the previous one, no additional calculation is required.
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.
Excellent! You are totally right!
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 for set_tests_properties(test_reshard_p_to_s PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" TIMEOUT 100)
PR types
New features
PR changes
Others
Description
支持partial状态到shard状态的转换
Pcard-73145