Skip to content

Commit ae44eff

Browse files
committed
fix ci error
1 parent 6f18217 commit ae44eff

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

paddle/fluid/inference/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set(FLUID_CORE_MODULES proto_desc memory lod_tensor executor)
1010
# TODO(panyx0718): Should this be called paddle_fluid_inference_api_internal?
1111
cc_library(paddle_fluid_api
1212
SRCS io.cc
13-
DEPS ${FLUID_CORE_MODULES} ${GLOB_OP_LIB} ${GLOB_PASS_LIB})
13+
DEPS ${FLUID_CORE_MODULES} ${GLOB_OP_LIB})
1414

1515
get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES)
1616

paddle/fluid/inference/analysis/CMakeLists.txt

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function (inference_analysis_test TARGET)
3333
endif()
3434
cc_test(${TARGET}
3535
SRCS "${analysis_test_SRCS}"
36-
DEPS analysis graph fc_fuse_pass graph_viz_pass infer_clean_graph_pass graph_pattern_detector pass ${analysis_test_EXTRA_DEPS}
36+
DEPS analysis pass ${GLOB_PASS_LIB} ${analysis_test_EXTRA_DEPS}
3737
ARGS --inference_model_dir=${PYTHON_TESTS_DIR}/book/word2vec.inference.model ${mem_opt} ${analysis_test_ARGS})
3838
set_tests_properties(${TARGET} PROPERTIES DEPENDS test_word2vec)
3939
endif(WITH_TESTING)
@@ -56,25 +56,13 @@ if (NOT EXISTS ${DITU_INSTALL_DIR} AND WITH_TESTING)
5656
endif()
5757

5858
inference_analysis_test(test_analyzer SRCS analyzer_tester.cc
59-
EXTRA_DEPS paddle_inference_api paddle_fluid_api ir_pass_manager analysis
60-
analysis_predictor
61-
# ir
62-
fc_fuse_pass
63-
fc_lstm_fuse_pass
64-
seq_concat_fc_fuse_pass
65-
graph_viz_pass
66-
infer_clean_graph_pass
67-
graph_pattern_detector
68-
infer_clean_graph_pass
69-
attention_lstm_fuse_pass
70-
paddle_inference_api
71-
pass
59+
EXTRA_DEPS paddle_inference_api paddle_fluid_api ir_pass_manager analysis_predictor
7260
ARGS --infer_ditu_rnn_model=${DITU_INSTALL_DIR}/model
7361
--infer_ditu_rnn_data=${DITU_INSTALL_DIR}/data.txt)
7462

7563
inference_analysis_test(test_data_flow_graph SRCS data_flow_graph_tester.cc)
76-
inference_analysis_test(test_data_flow_graph_to_fluid_pass SRCS data_flow_graph_to_fluid_pass_tester.cc EXTRA_DEPS paddle_inference_api)
77-
inference_analysis_test(test_fluid_to_ir_pass SRCS fluid_to_ir_pass_tester.cc EXTRA_DEPS paddle_fluid)
64+
inference_analysis_test(test_data_flow_graph_to_fluid_pass SRCS data_flow_graph_to_fluid_pass_tester.cc)
65+
inference_analysis_test(test_fluid_to_ir_pass SRCS fluid_to_ir_pass_tester.cc)
7866
inference_analysis_test(test_fluid_to_data_flow_graph_pass SRCS fluid_to_data_flow_graph_pass_tester.cc)
7967
inference_analysis_test(test_subgraph_splitter SRCS subgraph_splitter_tester.cc)
8068
inference_analysis_test(test_dfg_graphviz_draw_pass SRCS dfg_graphviz_draw_pass_tester.cc)

0 commit comments

Comments
 (0)