-
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] reshard from partial to replicated in same placement #56975
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
da63862
to
2cf5e78
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
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_r PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" TIMEOUT 100)
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 and might revise in next PR
errors::InvalidArgument( | ||
"Partial axis %ld can not exceed the ndim of process_mesh %ld", | ||
itr.first, | ||
ndim)); |
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.
could be better to double check here that the dim to partial is not be used as sharded.
"Split axis %ld can not exceed the ndim of process_mesh %ld", | ||
dims_mapping_[i], | ||
ndim)); | ||
placement[dims_mapping_[i]] = std::make_shared<ShardStatus>(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.
why shared_ptr ? the return placement is supposed for temporary usage and should not be hold by others.
PR types
New features
PR changes
Others
Description
Pcard-73145
Reshard方面:
丰富语义: