From 4e9cadf101d29ada447cdfcefaf36fb29d690005 Mon Sep 17 00:00:00 2001 From: xuanyue Date: Fri, 4 Jun 2021 14:47:00 +0800 Subject: [PATCH] open kernel.h --- mindspore/lite/{src => include}/kernel.h | 0 mindspore/lite/include/registry/register_kernel.h | 2 +- mindspore/lite/src/inner_kernel.h | 2 +- mindspore/lite/src/lite_kernel.h | 2 +- mindspore/lite/tools/cropper/build_cropper_config.sh | 1 - 5 files changed, 3 insertions(+), 4 deletions(-) rename mindspore/lite/{src => include}/kernel.h (100%) diff --git a/mindspore/lite/src/kernel.h b/mindspore/lite/include/kernel.h similarity index 100% rename from mindspore/lite/src/kernel.h rename to mindspore/lite/include/kernel.h diff --git a/mindspore/lite/include/registry/register_kernel.h b/mindspore/lite/include/registry/register_kernel.h index c5e98768424..d2a80ff88f7 100644 --- a/mindspore/lite/include/registry/register_kernel.h +++ b/mindspore/lite/include/registry/register_kernel.h @@ -24,7 +24,7 @@ #include "schema/model_generated.h" #include "include/context.h" #include "include/ms_tensor.h" -#include "src/kernel.h" +#include "include/kernel.h" namespace mindspore { namespace kernel { diff --git a/mindspore/lite/src/inner_kernel.h b/mindspore/lite/src/inner_kernel.h index 7caea2916cc..0c0b4774b28 100644 --- a/mindspore/lite/src/inner_kernel.h +++ b/mindspore/lite/src/inner_kernel.h @@ -29,7 +29,7 @@ #include "include/errorcode.h" #include "schema/model_generated.h" #include "include/context.h" -#include "src/kernel.h" +#include "include/kernel.h" namespace mindspore::kernel { class InnerKernel : public Kernel { diff --git a/mindspore/lite/src/lite_kernel.h b/mindspore/lite/src/lite_kernel.h index c20c123c4c5..aed1f17490b 100644 --- a/mindspore/lite/src/lite_kernel.h +++ b/mindspore/lite/src/lite_kernel.h @@ -32,7 +32,7 @@ #include "include/errorcode.h" #include "schema/model_generated.h" #include "include/context.h" -#include "src/kernel.h" +#include "include/kernel.h" #include "src/inner_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/tools/cropper/build_cropper_config.sh b/mindspore/lite/tools/cropper/build_cropper_config.sh index 80df47e12c3..a05c359445a 100644 --- a/mindspore/lite/tools/cropper/build_cropper_config.sh +++ b/mindspore/lite/tools/cropper/build_cropper_config.sh @@ -115,7 +115,6 @@ getCommonFile() { runtime_files_h=() while IFS='' read -r line; do runtime_files_h+=("$line"); done < <(ls mindspore/lite/src/runtime/*.h) others_files_h=( - mindspore/lite/src/kernel.h mindspore/lite/src/populate/populate_register.h mindspore/lite/src/runtime/infer_manager.h mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.h