提交 ec133f19 编写于 作者: N nhzlx

1. refine x86 and arm optimize pass

上级 c341bc41
......@@ -46,33 +46,27 @@ class Optimizer {
SpecifyKernelPickTactic(kernel_pick_factor);
InitTargetTypeTransformPass();
// #ifndef LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
if (passes.empty()) {
RunPasses(std::vector<std::string>{{
"graph_visualze", //
"lite_conv_bn_fuse_pass", //
"graph_visualze", //
"lite_conv_elementwise_add_act_fuse_pass", //
"graph_visualze", //
"lite_fc_fuse_pass", //
"static_kernel_pick_pass", //
/*
"variable_place_inference_pass", //
"argument_type_display_pass", //
"type_target_transform_pass", //
// "argument_type_display_pass", //
"variable_place_inference_pass", //
"argument_type_display_pass", //
"io_copy_kernel_pick_pass", //
"variable_place_inference_pass", //
"graph_visualze", //
*/
"runtime_context_assign_pass", //
#ifndef LITE_WITH_LIGHT_WEIGHT_FRAMEWORK
"variable_place_inference_pass", //
"argument_type_display_pass", //
"type_target_transform_pass", //
"argument_type_display_pass", //
"variable_place_inference_pass", //
"argument_type_display_pass", //
"io_copy_kernel_pick_pass", //
"variable_place_inference_pass", //
#endif
"runtime_context_assign_pass", //
}});
} else {
RunPasses(passes);
}
// #endif
exec_scope_ = program.exec_scope();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册