提交 c10bc6d6 编写于 作者: H huzhiqiang 提交者: sangoly

fix compiling and fix code style (#2088)

* fix compiling and fix code style test=develop
上级 cef884e5
...@@ -303,8 +303,12 @@ function(cc_library TARGET_NAME) ...@@ -303,8 +303,12 @@ function(cc_library TARGET_NAME)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h) if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h)
list(APPEND cc_library_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h) list(APPEND cc_library_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h)
endif() endif()
if(NOT ${source_file} MATCHES "framework.pb.cc") if(${source_file} MATCHES "__generated_code__.cc")
list(APPEND full_path_src ${CMAKE_CURRENT_SOURCE_DIR}/${source_file}) list(APPEND full_path_src ${source_file})
else()
if(NOT ${source_file} MATCHES "framework.pb.cc")
list(APPEND full_path_src ${CMAKE_CURRENT_SOURCE_DIR}/${source_file})
endif()
endif() endif()
endforeach() endforeach()
set(__lite_cc_files ${__lite_cc_files} ${full_path_src} CACHE INTERNAL "") set(__lite_cc_files ${__lite_cc_files} ${full_path_src} CACHE INTERNAL "")
......
...@@ -77,7 +77,6 @@ void MemoryOptimizePass::CollectLifeCycleByDevice( ...@@ -77,7 +77,6 @@ void MemoryOptimizePass::CollectLifeCycleByDevice(
auto outputs = op_node->outlinks; auto outputs = op_node->outlinks;
std::vector<Node*> requires(inputs.begin(), inputs.end()); std::vector<Node*> requires(inputs.begin(), inputs.end());
requires.insert(requires.end(), outputs.begin(), outputs.end()); requires.insert(requires.end(), outputs.begin(), outputs.end());
auto& stmt = op_node->AsStmt();
for (Node* node : requires) { for (Node* node : requires) {
CHECK(node->IsArg()); CHECK(node->IsArg());
auto& arg = node->AsArg(); auto& arg = node->AsArg();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册