From 10d6e48894c8dc9cf71a53b25154d9a04cd4e39e Mon Sep 17 00:00:00 2001 From: tienfeek Date: Mon, 17 Feb 2020 06:04:20 +0000 Subject: [PATCH] delete unused code test=develop --- lite/api/CMakeLists.txt | 21 +-------------------- lite/core/program.cc | 2 -- lite/gen_code/paddle_infer.h | 1 - lite/kernels/host/CMakeLists.txt | 2 +- 4 files changed, 2 insertions(+), 24 deletions(-) mode change 100644 => 100755 lite/gen_code/paddle_infer.h diff --git a/lite/api/CMakeLists.txt b/lite/api/CMakeLists.txt index 1ddc65396f..70f483822a 100755 --- a/lite/api/CMakeLists.txt +++ b/lite/api/CMakeLists.txt @@ -1,4 +1,4 @@ -if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK) + if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK) lite_cc_library(place SRCS paddle_place.cc DEPS logging) else() lite_cc_library(place SRCS paddle_place.cc DEPS glog) @@ -218,30 +218,11 @@ if(LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND WITH_TESTING) --model_dir=${LITE_MODEL_DIR}/resnet50 SERIAL) add_dependencies(test_resnet50 extern_lite_download_resnet50_tar_gz) - lite_cc_test(test_resnet50_fpga SRCS resnet50_test_fpga.cc - DEPS ${lite_model_test_DEPS} - CL_DEPS ${opencl_kernels} - FPGA_DEPS ${fpga_kernels}) - lite_cc_test(test_ssd_fpga SRCS test_ssd_fpga.cc DEPS ${lite_model_test_DEPS} CL_DEPS ${opencl_kernels} FPGA_DEPS ${fpga_kernels}) - lite_cc_test(test_inceptionv3_fpga SRCS inceptionv3_test_fpga.cc - DEPS ${lite_model_test_DEPS} - CL_DEPS ${opencl_kernels} - FPGA_DEPS ${fpga_kernels}) - - lite_cc_test(test_inceptionv4 SRCS inceptionv4_test.cc - DEPS ${lite_model_test_DEPS} - CL_DEPS ${opencl_kernels} - ARGS --cl_path=${CMAKE_SOURCE_DIR}/lite/backends/opencl - --model_dir=${LITE_MODEL_DIR}/inception_v4 SERIAL) - add_dependencies(test_inceptionv4 extern_lite_download_inception_v4_simple_tar_gz) - lite_cc_test(test_ocr_attention_fpga SRCS ocr_attention_test_fpga.cc - DEPS ${lite_model_test_DEPS}) - # lite_cc_test(model_run_test_image SRCS model_run_test_image.cc # DEPS ${lite_model_test_DEPS} # CL_DEPS ${opencl_kernels} diff --git a/lite/core/program.cc b/lite/core/program.cc index d967b99686..4f6ea2ce47 100755 --- a/lite/core/program.cc +++ b/lite/core/program.cc @@ -140,8 +140,6 @@ void RuntimeProgram::Run() { #ifndef LITE_WITH_FPGA if (inst.is_feed_fetch_op()) continue; std::string op_type = inst.op()->op_info()->Type(); - VLOG(4) << ">> Running kernel: " << inst.op()->op_info()->Repr() - << " on Target " << TargetToStr(inst.kernel()->target()); #endif inst.Run(); #ifdef LITE_WITH_PROFILE diff --git a/lite/gen_code/paddle_infer.h b/lite/gen_code/paddle_infer.h old mode 100644 new mode 100755 index 2449e1e5d3..dc2d56422c --- a/lite/gen_code/paddle_infer.h +++ b/lite/gen_code/paddle_infer.h @@ -46,7 +46,6 @@ class Tensor { */ class PaddlePredictor { public: - void Init() {} std::unique_ptr GetTensor(const std::string &id) const; std::unique_ptr GetMutableTensor(const std::string &id); diff --git a/lite/kernels/host/CMakeLists.txt b/lite/kernels/host/CMakeLists.txt index c6f2721d80..c212fb9b04 100755 --- a/lite/kernels/host/CMakeLists.txt +++ b/lite/kernels/host/CMakeLists.txt @@ -4,7 +4,7 @@ add_kernel(feed_compute_host Host basic SRCS feed_compute.cc DEPS ${lite_kernel_ add_kernel(fetch_compute_host Host basic SRCS fetch_compute.cc DEPS ${lite_kernel_deps}) add_kernel(reshape_compute_host Host basic SRCS reshape_compute.cc DEPS ${lite_kernel_deps} reshape_op) add_kernel(multiclass_nms_compute_host Host basic SRCS multiclass_nms_compute.cc DEPS ${lite_kernel_deps}) -add_kernel(one_hot_compute_host Host basic SRCS one_hot_compute.cc DEPS ${lite_kernel_deps}) +add_kernel(one_hot_compute_host Host extra SRCS one_hot_compute.cc DEPS ${lite_kernel_deps}) #lite_cc_test(test_reshape_compute_host SRCS reshape_compute_test.cc DEPS reshape_compute_host any) #lite_cc_test(test_multiclass_nms_compute_host SRCS multiclass_nms_compute_test.cc DEPS multiclass_nms_compute_host any) -- GitLab