Skip to content

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