From 35ea6f9c8e8fe850df5d56cac290adcb9a7af187 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 28 Feb 2020 13:18:44 +0800 Subject: [PATCH] remove API headfile test=develop (#3027) --- lite/api/android/jni/native/paddle_lite_jni.h | 5 ----- lite/api/apis_test.cc | 3 --- lite/api/benchmark.cc | 3 --- lite/api/light_api.cc | 6 ++++++ lite/api/light_api_shared.cc | 5 ----- lite/api/light_api_test.cc | 3 --- lite/api/lite_multithread_test.cc | 3 --- lite/api/model_test.cc | 3 --- lite/api/model_test_classify.cc | 3 --- lite/api/model_test_detection.cc | 3 --- lite/api/paddle_api_test.cc | 3 --- lite/core/mir/subgraph/subgraph_pass_test.cc | 3 --- 12 files changed, 6 insertions(+), 37 deletions(-) diff --git a/lite/api/android/jni/native/paddle_lite_jni.h b/lite/api/android/jni/native/paddle_lite_jni.h index f447ce105a..983f108a86 100644 --- a/lite/api/android/jni/native/paddle_lite_jni.h +++ b/lite/api/android/jni/native/paddle_lite_jni.h @@ -17,11 +17,6 @@ #include /* Header for class com_baidu_paddle_lite_PaddlePredictor */ #include "lite/api/paddle_lite_factory_helper.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#ifndef LITE_ON_TINY_PUBLISH -#include "lite/api/paddle_use_passes.h" -#endif #ifdef __cplusplus extern "C" { #endif diff --git a/lite/api/apis_test.cc b/lite/api/apis_test.cc index bb852297d1..917f2a73a9 100644 --- a/lite/api/apis_test.cc +++ b/lite/api/apis_test.cc @@ -21,9 +21,6 @@ #include #include "lite/api/cxx_api.h" #include "lite/api/light_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/core/mir/pass_registry.h" DEFINE_string(model_dir, "", ""); diff --git a/lite/api/benchmark.cc b/lite/api/benchmark.cc index 718dbe4429..ee236c1918 100644 --- a/lite/api/benchmark.cc +++ b/lite/api/benchmark.cc @@ -23,9 +23,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/core/device_info.h" #include "lite/utils/cp_logging.h" #include "lite/utils/string.h" diff --git a/lite/api/light_api.cc b/lite/api/light_api.cc index d517383d27..b641973a15 100644 --- a/lite/api/light_api.cc +++ b/lite/api/light_api.cc @@ -13,6 +13,12 @@ // limitations under the License. #include "lite/api/light_api.h" +#include "paddle_use_kernels.h" // NOLINT +#include "paddle_use_ops.h" // NOLINT +#ifndef LITE_ON_TINY_PUBLISH +#include "lite/api/paddle_use_passes.h" +#endif + #include namespace paddle { diff --git a/lite/api/light_api_shared.cc b/lite/api/light_api_shared.cc index 557804bfa5..cfe3d9de09 100644 --- a/lite/api/light_api_shared.cc +++ b/lite/api/light_api_shared.cc @@ -12,11 +12,6 @@ See the License for the specific language governing permissions and limitations under the License. */ #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#ifndef LITE_ON_TINY_PUBLISH -#include "lite/api/paddle_use_passes.h" -#endif namespace paddle { namespace lite_api { diff --git a/lite/api/light_api_test.cc b/lite/api/light_api_test.cc index 7d322530f6..b49ff8b80c 100644 --- a/lite/api/light_api_test.cc +++ b/lite/api/light_api_test.cc @@ -15,9 +15,6 @@ #include "lite/api/light_api.h" #include #include -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" DEFINE_string(optimized_model, "", ""); diff --git a/lite/api/lite_multithread_test.cc b/lite/api/lite_multithread_test.cc index addd512eb0..12559d171f 100644 --- a/lite/api/lite_multithread_test.cc +++ b/lite/api/lite_multithread_test.cc @@ -16,9 +16,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/api/test_helper.h" #include "lite/core/device_info.h" #include "lite/core/profile/timer.h" diff --git a/lite/api/model_test.cc b/lite/api/model_test.cc index 190890da4c..ed4ab75366 100644 --- a/lite/api/model_test.cc +++ b/lite/api/model_test.cc @@ -17,9 +17,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/api/test_helper.h" #include "lite/core/device_info.h" #include "lite/core/profile/timer.h" diff --git a/lite/api/model_test_classify.cc b/lite/api/model_test_classify.cc index c78dfdd9ac..bea0ab15e4 100644 --- a/lite/api/model_test_classify.cc +++ b/lite/api/model_test_classify.cc @@ -17,9 +17,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/api/test_helper.h" #include "lite/core/device_info.h" #include "lite/core/profile/timer.h" diff --git a/lite/api/model_test_detection.cc b/lite/api/model_test_detection.cc index d5618aebfd..36a23999d3 100644 --- a/lite/api/model_test_detection.cc +++ b/lite/api/model_test_detection.cc @@ -17,9 +17,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/api/test_helper.h" #include "lite/core/device_info.h" #include "lite/core/profile/timer.h" diff --git a/lite/api/paddle_api_test.cc b/lite/api/paddle_api_test.cc index 9213a24e5c..9b8384f282 100644 --- a/lite/api/paddle_api_test.cc +++ b/lite/api/paddle_api_test.cc @@ -15,9 +15,6 @@ #include "lite/api/paddle_api.h" #include #include -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/utils/cp_logging.h" #include "lite/utils/io.h" DEFINE_string(model_dir, "", ""); diff --git a/lite/core/mir/subgraph/subgraph_pass_test.cc b/lite/core/mir/subgraph/subgraph_pass_test.cc index 247795a86c..7cf65a23b8 100644 --- a/lite/core/mir/subgraph/subgraph_pass_test.cc +++ b/lite/core/mir/subgraph/subgraph_pass_test.cc @@ -15,9 +15,6 @@ #include #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" -#include "lite/api/paddle_use_passes.h" #include "lite/api/test_helper.h" #include "lite/utils/cp_logging.h" -- GitLab