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] Refine if translate #58250

Merged
merged 10 commits into from
Oct 23, 2023

Conversation

zhangbo9674
Copy link
Contributor

PR types

Others

PR changes

Others

Description

优化 if 翻译

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Oct 19, 2023

你的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.

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM overall

uint64_t start_id,
uint64_t end_id,
TranslationContext* translation_ctx,
pir::Block* dest_block,
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
pir::Block* dest_block,
pir::Block* dst_block,

Copy link
Contributor

Choose a reason for hiding this comment

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

dst 与 src 是一组对应

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,单独提 pr完善

pir::Block* dest_block,
bool for_cond_block = false,
std::vector<std::string> cond_sub_block_outputs = {},
std::vector<::paddle::framework::OpDesc*> cond_init_ops = {});
Copy link
Contributor

Choose a reason for hiding this comment

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

这里两个默认参数是不是也可以 const & ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

可以的,单独提 pr 完善

@zhangbo9674 zhangbo9674 merged commit dd0cd2e into PaddlePaddle:develop Oct 23, 2023
hitywt pushed a commit to hitywt/Paddle that referenced this pull request Oct 24, 2023
* refine

* fix

* fix

* fix

* fix

* fix

* add ut

* fix

* fix
jiahy0825 pushed a commit to jiahy0825/Paddle that referenced this pull request Oct 26, 2023
* refine

* fix

* fix

* fix

* fix

* fix

* add ut

* fix

* fix
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* refine

* fix

* fix

* fix

* fix

* fix

* add ut

* fix

* fix
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.

2 participants