-
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
【PIR Dist Op Reg No.29】 reg prune_gate_by_capacity #62494
【PIR Dist Op Reg No.29】 reg prune_gate_by_capacity #62494
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
71672e6
to
ca3a422
Compare
@kangguangli 这里ci好像因为覆盖率的问题没过,麻烦review一下 |
func : PruneGateByCapacityInferMeta | ||
kernel : | ||
func : prune_gate_by_capacity | ||
data_type : dtype |
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.
data_type : dtype | |
data_type : gate_idx |
这个字段是指kernel的dtype要和哪个输入保持一致
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.
已修改~
62de950
to
e0addc4
Compare
@kangguangli 这个麻烦再review一下~ |
paddle/phi/api/yaml/op_compat.yaml
Outdated
@@ -3799,6 +3799,12 @@ | |||
inputs : | |||
x : X | |||
|
|||
- op: prune_gate_by_capacity | |||
inputs: | |||
{gate_idx: GateIdx, expert_count: ExpertCount, n_expert: n_expert, n_worker: n_worker} |
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.
{gate_idx: GateIdx, expert_count: ExpertCount, n_expert: n_expert, n_worker: n_worker} | |
{gate_idx: GateIdx, expert_count: ExpertCount,} |
这里主要是为了配置名称的映射关系。默认是名称相同的,所以如果同名的话,就不用添加在yaml中,更建议删去。
PR types
Others
PR changes
Others
Description
#60436
注册算子prune_gate_by_capacity