-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Replace Some Lower in AutoTune Unit Tests #58146
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
|
||
LOG(INFO) << "fn:\n" << fn; | ||
|
||
auto tensors = | ||
CollectIRNodes(fn, [](const Expr* x) { return x->as_tensor(); }); | ||
ASSERT_EQ(tensors.size(), 5UL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the number of tensors decrease here?
It looks like there should be 3 here, but why did the old version have 5 tensors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前Lower/Ast生成的tensor,会含有计算body,但这个其实我们Lower之后用不着了。
因为计算的tensor在我现在Lower/Ast没了,所以那里改成3了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Replace Some Lower in AutoTune Unit Tests
Replace Some Lower in AutoTune Unit Tests
Replace Some Lower in AutoTune Unit Tests
PR types
Others
PR changes
Others
Description
pcard-75206
Replace Some Lower in AutoTune Unit Tests