-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Auto Parallel] Add spmd rule No.1 for topk and topk_grad ops #72499
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
c5afa97
to
a23ce42
Compare
/re-run clone |
@Yeenyeong This pr add the spmd rule for topk and topk_grad, now is ready to be reviewed, Thanks! |
inferred_input_dist_attrs = result_dist_attrs[0] | ||
inferred_output_dist_attrs = result_dist_attrs[1] | ||
|
||
self.assertEqual(len(result_dist_attrs), 2) |
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.
Checking length should be done before a container is accessed.
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.
Thanks
需要解决下冲突 |
… add_spmd_topk
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 Category
Auto Parallel
PR Types
New features
Description
目前将 axis 维度强制为 Replicated