From f529eabf1467d1b75d99e90ff79d7884b52f10d0 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Thu, 1 Jun 2023 03:29:56 +0800 Subject: [PATCH] Revert "delete some dependencies (#54214)" This reverts commit 2db64d0892e2532e1ed0b6ebeb660d9f8c465237. --- test/cpp/inference/api/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/cpp/inference/api/CMakeLists.txt b/test/cpp/inference/api/CMakeLists.txt index 6cfde9b6462..39bbd3456ff 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() -- GitLab