Skip to content

Commit 9664c53

Browse files
committed
fix cmake error to pass the ci
1 parent 81c2170 commit 9664c53

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

paddle/fluid/inference/analysis/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@ function (inference_analysis_test TARGET)
3535
cc_test(${TARGET}
3636
SRCS "${analysis_test_SRCS}"
3737
DEPS analysis pass ${GLOB_PASS_LIB} ${analysis_test_EXTRA_DEPS}
38-
ARGS ${mem_opt} ${analysis_test_ARGS})
38+
ARGS --inference_model_dir=${PYTHON_TESTS_DIR}/book/word2vec.inference.model ${mem_opt} ${analysis_test_ARGS})
3939
set_tests_properties(${TARGET} PROPERTIES DEPENDS test_word2vec)
4040
endif(WITH_TESTING)
4141
endfunction(inference_analysis_test)
4242

43-
inference_analysis_test(test_analyzer SRCS analyzer_tester.cc
44-
EXTRA_DEPS paddle_inference_api paddle_fluid_api ir_pass_manager analysis_predictor
45-
ARGS --inference_model_dir=${PYTHON_TESTS_DIR}/book/word2vec.inference.model)
46-
43+
inference_analysis_test(test_analyzer SRCS analyzer_tester.cc EXTRA_DEPS paddle_inference_api)
4744
inference_analysis_test(test_data_flow_graph SRCS data_flow_graph_tester.cc)
4845
inference_analysis_test(test_data_flow_graph_to_fluid_pass SRCS data_flow_graph_to_fluid_pass_tester.cc)
4946
inference_analysis_test(test_fluid_to_ir_pass SRCS fluid_to_ir_pass_tester.cc)

0 commit comments

Comments
 (0)