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

[CINN] Add constraint for while op #64385

Merged
merged 2 commits into from
May 17, 2024
Merged

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented May 16, 2024

PR Category

CINN

PR Types

Devs

Description

Pcard-67164

为while op添加符号约束信息。

Copy link

paddle-bot bot commented May 16, 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.

@phlrain phlrain self-requested a review May 17, 2024 08:03
Comment on lines +692 to +696
if (yield_value_shape[j] ==
builder.Broadcast(input_arg_shape[j],
original_input_shape[j]) ||
yield_value_shape[j] == builder.Broadcast(original_input_shape[j],
input_arg_shape[j])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

按照约定。这个if的判断有点复杂了。使用lambda提炼一下,lambda变量名承载注释信息。

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

@zyfncg zyfncg merged commit 1cae38d into PaddlePaddle:develop May 17, 2024
31 checks passed
@zyfncg zyfncg deleted the while_constraint branch May 17, 2024 08:10
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 18, 2024
* add constraint for while of

* fix bug
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 19, 2024
* add constraint for while of

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

4 participants