-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[PASS][HuaweiAscendNPU] Fix constant fold pass and solve the precision of ascend meshgrid op #9940
[PASS][HuaweiAscendNPU] Fix constant fold pass and solve the precision of ascend meshgrid op #9940
Conversation
Thanks for your contribution! |
…addlePaddle/Paddle-Lite into fix_constant_fold_pass_and_meshgrid
f4cd74c
to
39a103a
Compare
@@ -188,7 +188,6 @@ std::unique_ptr<RuntimeProgram> RunDefaultOptimizer( | |||
"lite_conv_scale_fuse_pass", | |||
"lite_conv_elementwise_tree_fuse_pass", | |||
"lite_greater_than_cast_fuse_pass", | |||
"fill_range_fuse_pass", |
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.
已经有fill_constant和range的常量折叠pass了,这个pass不再需要
@@ -72,28 +92,26 @@ void RangeCalcOfflinePass::RemoveRangePattern( | |||
auto step_t = step_var->GetMutable<lite::Tensor>(); | |||
if (!start_t->persistable() || !end_t->persistable() || | |||
!step_t->persistable()) { | |||
LOG(WARNING) << "RangeCalcOfflinePass does not support input that is not " | |||
"persistable"; | |||
VLOG(5) |
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.
为什么把warning改成vlog
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.
应该是不希望每次执行都打印太多log吧
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.
是的,LOG(WARNING)会不受限制的进行打印,有时会输出大量log
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
PR devices
Framework and NNadapter
PR types
Bug fixes
PR changes
PASS and OP
Description
修复常量折叠 Pass 和解决 Ascend meshgrid op 精度问题。