diff --git a/test/cpp/inference/api/CMakeLists.txt b/test/cpp/inference/api/CMakeLists.txt index 6cfde9b6462d8b8dcf12c96c868011c7ab36fd83..39bbd3456ffdcbc470e2d099a14448c0326f7266 100644 --- a/test/cpp/inference/api/CMakeLists.txt +++ b/test/cpp/inference/api/CMakeLists.txt @@ -127,6 +127,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${install_dir}/model --infer_data=${install_dir}/data.txt @@ -141,6 +142,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${install_dir}/model --infer_data=${install_dir}/data.txt @@ -463,6 +465,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${ERNIE_INSTALL_DIR}/model --infer_data=${ERNIE_INSTALL_DIR}/data.txt @@ -509,6 +512,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${TRANSFORMER_INSTALL_DIR}/model --infer_data=${TRANSFORMER_INSTALL_DIR}/data.txt @@ -521,6 +525,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${TRANSFORMER_INSTALL_DIR}/model --infer_data=${TRANSFORMER_INSTALL_DIR}/data.txt @@ -576,6 +581,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${DENSEBOX_INSTALL_DIR}/model --infer_data=${DENSEBOX_INSTALL_DIR}/detect_input_50.txt @@ -1172,6 +1178,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${LITE_MODEL_INSTALL_DIR}) inference_analysis_test( @@ -1181,6 +1188,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS paddle_inference_shared python + pybind ARGS --infer_model=${RESNET50_MODEL_DIR}) @@ -1206,6 +1214,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS ${INFERENCE_C_EXTRA_DEPS} python + pybind ARGS --infer_model=${MOBILENET_INSTALL_DIR}/model) if(WIN32) @@ -1239,6 +1248,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS ${INFERENCE_C_EXTRA_DEPS} python + pybind ARGS --infer_model=${MOBILENET_INSTALL_DIR}/model) if(WIN32) @@ -1323,6 +1333,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) EXTRA_DEPS ${INFERENCE_C_EXTRA_DEPS} python + pybind ARGS --infer_model=${CHINESE_NER_INSTALL_DIR}/model) if(WIN32) @@ -1532,6 +1543,7 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST) analysis_predictor benchmark ${inference_deps} + pybind ARGS --dirname=${WORD2VEC_MODEL_DIR}) endif()