Skip to content

Conversation

zhangbo9674
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

Optimize cond op translation logic, fixing bugs caused by inconsistent number of true and false branch outputs
Pcard-67164

Copy link

paddle-bot bot commented Dec 4, 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

@kangguangli kangguangli left a comment

Choose a reason for hiding this comment

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

LGTM

std::tuple<std::vector<::paddle::framework::VarDesc*>,
std::vector<std::string>,
std::vector<std::string>>
ConditionBlockCombination::CondOutputVars() const {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个现在每次被调用都会重新执行一次,是否静态化为成员变量比较好?

@zhangbo9674 zhangbo9674 merged commit 1902cff into PaddlePaddle:develop Dec 5, 2023
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