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

fix build_cinn_pass internal var may be control var problem #40812

Merged
merged 3 commits into from
Mar 24, 2022

Conversation

thisjiang
Copy link
Contributor

@thisjiang thisjiang commented Mar 22, 2022

PR types

Bug fixes

PR changes

APIs

Describe

In BuildCinnPass, an internal var may be a control var, that means its vardesc is empty. In previous code, we reported the error and existed when we check the vardesc failed, now we choice skip the vars because of cinn not support control var.

Comment on lines 308 to 309
// skip control var
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

添加TODO说明可能存在问题以及待改进;添加VLOG,便于debug

Copy link
Contributor

@wzzju wzzju left a comment

Choose a reason for hiding this comment

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

LGTM

@thisjiang thisjiang merged commit 310b7db into PaddlePaddle:develop Mar 24, 2022
@thisjiang thisjiang deleted the fix_cinn_internal_var_empty branch March 24, 2022 12:01
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.

3 participants