Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Mar 10, 2024

PR types

Others

PR changes

Others

Description

Copy link

paddle-bot bot commented Mar 10, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Difers Difers changed the title 【PIR Dist Op Reg No.13】reg_pir_send_and_recv 【PIR Dist Op Reg No.14】reg_pir_send_and_recv Mar 11, 2024
@kangguangli kangguangli requested a review from zyfncg March 11, 2024 08:55
Copy link

paddle-ci-bot bot commented Mar 18, 2024

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.

@Difers Difers force-pushed the reg_pir_send_recv branch 2 times, most recently from 0d6efa4 to 726e361 Compare March 26, 2024 02:24
@@ -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"})
Copy link
Contributor

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[]类型。

@luotao1
Copy link
Contributor

luotao1 commented Apr 9, 2024

需要解决下冲突

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func : UnchangedInferMeta
func : UnchangedVectorInferMeta

@Difers Difers closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants