diff --git a/lite/api/CMakeLists.txt b/lite/api/CMakeLists.txt index fb8784cb2084311a306d709006461ca349963bed..b3c243b63c0ab2994f9bfe44ef8a6b3a25e715d3 100644 --- a/lite/api/CMakeLists.txt +++ b/lite/api/CMakeLists.txt @@ -15,7 +15,6 @@ if ((NOT LITE_ON_TINY_PUBLISH) AND (LITE_WITH_CUDA OR LITE_WITH_X86 OR LITE_WITH #full api dynamic library lite_cc_library(paddle_full_api_shared SHARED SRCS paddle_api.cc light_api.cc cxx_api.cc cxx_api_impl.cc light_api_impl.cc DEPS paddle_api paddle_api_light paddle_api_full) - target_sources(paddle_full_api_shared PUBLIC ${__lite_cc_files}) add_dependencies(paddle_full_api_shared op_list_h kernel_list_h framework_proto op_registry fbs_headers) target_link_libraries(paddle_full_api_shared framework_proto op_registry) if(LITE_WITH_X86) diff --git a/lite/api/benchmark.cc b/lite/api/benchmark.cc index 1dccbb49a4b15a397ae37b1373b5df3cf95e7e9f..b72a6e6bdb2dd170460d0cbb2f3257e337625671 100644 --- a/lite/api/benchmark.cc +++ b/lite/api/benchmark.cc @@ -30,8 +30,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/core/device_info.h" #include "lite/utils/cp_logging.h" #include "lite/utils/string.h" diff --git a/lite/api/light_api_impl.cc b/lite/api/light_api_impl.cc index c9c34377e2a82b72d26e3148a694fe0662e985ce..3c5be7b9cdd340fe0fe82c589706c77875de0030 100644 --- a/lite/api/light_api_impl.cc +++ b/lite/api/light_api_impl.cc @@ -17,6 +17,10 @@ #include "lite/api/paddle_api.h" #include "lite/core/version.h" #include "lite/model_parser/model_parser.h" +#ifndef LITE_ON_TINY_PUBLISH +#include "lite/api/paddle_use_kernels.h" +#include "lite/api/paddle_use_ops.h" +#endif namespace paddle { namespace lite { diff --git a/lite/api/model_test.cc b/lite/api/model_test.cc index 90575280873c8cda9310cfc951645f4614c2ce30..3cce247750341b37bf9aff07fce8ec54ee1428fe 100644 --- a/lite/api/model_test.cc +++ b/lite/api/model_test.cc @@ -25,8 +25,6 @@ #include "lite/core/profile/basic_profiler.h" #endif // LITE_WITH_PROFILE #include -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" using paddle::lite::profile::Timer; diff --git a/lite/api/paddle_api_test.cc b/lite/api/paddle_api_test.cc index 5c6eba084aaaf7b73d5087b0baf1b993cf9455c1..41799bdc2c6582e6d987d7d896db1f499eb4cdf4 100644 --- a/lite/api/paddle_api_test.cc +++ b/lite/api/paddle_api_test.cc @@ -15,8 +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/utils/cp_logging.h" #include "lite/utils/io.h" diff --git a/lite/core/mir/subgraph/subgraph_pass_test.cc b/lite/core/mir/subgraph/subgraph_pass_test.cc index 5a57623b0c984be24e2d0b97ee575b22d369fdad..1a615838e33b6688d7213787a7aa6ec35ed7f0b4 100644 --- a/lite/core/mir/subgraph/subgraph_pass_test.cc +++ b/lite/core/mir/subgraph/subgraph_pass_test.cc @@ -17,8 +17,6 @@ #include #include "lite/api/paddle_api.h" -#include "lite/api/paddle_use_kernels.h" -#include "lite/api/paddle_use_ops.h" #include "lite/api/test_helper.h" #include "lite/utils/cp_logging.h" #include "lite/utils/string.h"