@@ -33,7 +33,7 @@ function (inference_analysis_test TARGET)
33
33
endif ()
34
34
cc_test (${TARGET}
35
35
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}
37
37
ARGS --inference_model_dir=${PYTHON_TESTS_DIR}/book/word2vec.inference.model ${mem_opt} ${analysis_test_ARGS} )
38
38
set_tests_properties (${TARGET} PROPERTIES DEPENDS test_word2vec )
39
39
endif (WITH_TESTING )
@@ -56,25 +56,13 @@ if (NOT EXISTS ${DITU_INSTALL_DIR} AND WITH_TESTING)
56
56
endif ()
57
57
58
58
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
72
60
ARGS --infer_ditu_rnn_model=${DITU_INSTALL_DIR}/model
73
61
--infer_ditu_rnn_data=${DITU_INSTALL_DIR}/data.txt )
74
62
75
63
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 )
78
66
inference_analysis_test (test_fluid_to_data_flow_graph_pass SRCS fluid_to_data_flow_graph_pass_tester.cc )
79
67
inference_analysis_test (test_subgraph_splitter SRCS subgraph_splitter_tester.cc )
80
68
inference_analysis_test (test_dfg_graphviz_draw_pass SRCS dfg_graphviz_draw_pass_tester.cc )
0 commit comments