-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Auto Parallel]Add spmd_rule for min and min_grad ops. #72269
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提交成功,感谢你对开源项目的贡献! |
phi::distributed::SpmdInfo forward_info = | ||
phi::distributed::ReductionMinInferSpmdDynamic(x, axis, keep_dim); | ||
check_dim_mapping(forward_info.second[0], {-1, -1}); | ||
check_partial_dims(forward_info.second[0], {0}); |
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.
shall we test backward?
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.
The spmd_rule function of min_grad reuses ReductionGradInferSpmd, which has already been validated through previous CI tests.
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
…72269) * add unary ops which have spmd_rule but not add in yaml file. * Add spmd_rule for min operator * add head file. * add CI to test min ops. * add spmd rules for min_grad ops. * Add cpp unit test for spmd_rule of min and min_grad ops.
PR Category
Auto Parallel
PR Types
New features
Description
Add spmd_rule for min and min_grad ops.