-
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.14】reg_pir_send_and_recv #62589
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 304be96's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
0d6efa4
to
726e361
Compare
@@ -1483,6 +1483,17 @@ | |||
kernel: | |||
func: seed | |||
|
|||
- op : send_and_recv | |||
args : (Tensor x, str message_name, str[] send_var_name, str[] recv_var_name, int trainer_id = 0, str mode="forward", str[] endpoints={"127.0.0.1:6164"}, str[] next_endpoints={"127.0.0.1:6164"}, str[] previous_endpoints={"127.0.0.1:6164"}) |
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.
这里的x和out根据旧IR下的定义
void Make() override {
AddInput("X", "Tensor Input variable to be sent").AsDuplicable();
AddOutput("Out", "Tensor Output variable to be recv").AsDuplicable();
应该收Tensor[]类型。
726e361
to
cfd8beb
Compare
需要解决下冲突 |
@@ -1505,6 +1505,17 @@ | |||
kernel: | |||
func: seed | |||
|
|||
- op : send_and_recv | |||
args : (Tensor[] x, str message_name, str[] send_var_name, str[] recv_var_name, int trainer_id = 0, str mode="forward", str[] endpoints={"127.0.0.1:6164"}, str[] next_endpoints={"127.0.0.1:6164"}, str[] previous_endpoints={"127.0.0.1:6164"}) | |||
output : Tensor[](out) |
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.
output : Tensor[](out) | |
output : Tensor[](out){x.size()} |
这里需要加上{x.size()}
,代码生成脚本如果发现没有x.size()
会使用None填充,导致编译错误
args : (Tensor[] x, str message_name, str[] send_var_name, str[] recv_var_name, int trainer_id = 0, str mode="forward", str[] endpoints={"127.0.0.1:6164"}, str[] next_endpoints={"127.0.0.1:6164"}, str[] previous_endpoints={"127.0.0.1:6164"}) | ||
output : Tensor[](out) | ||
infer_meta : | ||
func : UnchangedInferMeta |
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.
func : UnchangedInferMeta | |
func : UnchangedVectorInferMeta |
PR types
Others
PR changes
Others
Description