diff --git a/cmake/package_lite.cmake b/cmake/package_lite.cmake index 4110d04cd36..8e8be2db678 100644 --- a/cmake/package_lite.cmake +++ b/cmake/package_lite.cmake @@ -153,15 +153,15 @@ if(PLATFORM_ARM64) COMPONENT ${RUNTIME_COMPONENT_NAME}) install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE) - file(GLOB NNACL_FILES GLOB ${TOP_DIR}/mindspore/lite/nnacl/*.h) + file(GLOB NNACL_FILES GLOB ${NNACL_DIR}/*.h) install(FILES ${NNACL_FILES} DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME}) - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${TOP_DIR}/mindspore/lite/micro/coder/wrapper DESTINATION ${CODEGEN_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") @@ -185,15 +185,15 @@ elseif(PLATFORM_ARM32) COMPONENT ${RUNTIME_COMPONENT_NAME}) install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE) - file(GLOB NNACL_FILES GLOB ${TOP_DIR}/mindspore/lite/nnacl/*.h) + file(GLOB NNACL_FILES GLOB ${NNACL_DIR}/*.h) install(FILES ${NNACL_FILES} DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME}) - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${TOP_DIR}/mindspore/lite/micro/coder/wrapper DESTINATION ${CODEGEN_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") @@ -262,15 +262,15 @@ else() install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${CONVERTER_ROOT_DIR}/third_party/glog/lib RENAME libglog.so.0 COMPONENT ${RUNTIME_COMPONENT_NAME}) - file(GLOB NNACL_FILES GLOB ${TOP_DIR}/mindspore/lite/nnacl/*.h) + file(GLOB NNACL_FILES GLOB ${NNACL_DIR}/*.h) install(FILES ${NNACL_FILES} DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME}) - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/base DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/int8 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/fp32 DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") - install(DIRECTORY ${TOP_DIR}/mindspore/lite/nnacl/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl + install(DIRECTORY ${NNACL_DIR}/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${TOP_DIR}/mindspore/lite/micro/coder/wrapper DESTINATION ${CODEGEN_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h") diff --git a/mindspore/ccsrc/CMakeLists.txt b/mindspore/ccsrc/CMakeLists.txt index 1c94397526c..b9ac4f6e325 100644 --- a/mindspore/ccsrc/CMakeLists.txt +++ b/mindspore/ccsrc/CMakeLists.txt @@ -4,6 +4,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_BINARY_DIR}) if(ENABLE_CPU) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/backend/kernel_compiler/cpu) if("${X86_64_SIMD}" STREQUAL "sse") add_compile_definitions(ENABLE_SSE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2") @@ -12,8 +13,8 @@ if(ENABLE_CPU) if("${X86_64_SIMD}" STREQUAL "avx") add_compile_definitions(ENABLE_SSE) add_compile_definitions(ENABLE_AVX) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mavx2") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1 -mavx -mavx2") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1 -mavx -mavx2") endif() endif() diff --git a/mindspore/ccsrc/backend/kernel_compiler/CMakeLists.txt b/mindspore/ccsrc/backend/kernel_compiler/CMakeLists.txt index 2caf568e871..f0e7c3f8ef9 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/CMakeLists.txt +++ b/mindspore/ccsrc/backend/kernel_compiler/CMakeLists.txt @@ -29,8 +29,35 @@ if(ENABLE_D) endif() if(ENABLE_CPU) - file(GLOB_RECURSE CPU_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") + file(GLOB NNACL_C_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + "cpu/nnacl/*.c" + "cpu/nnacl/fp32/*.c" + "cpu/nnacl/int8/*.c" + "cpu/nnacl/infer/*.c" + "cpu/nnacl/base/*.c" + ) + if("${X86_64_SIMD}" STREQUAL "sse") + file(GLOB NNACL_ASM_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + "cpu/nnacl/intrinsics/sse/*.c" + ) + set_property(SOURCE ${NNACL_ASM_SRC} PROPERTY LANGUAGE C) + endif() + if("${X86_64_SIMD}" STREQUAL "avx") + file(GLOB NNACL_ASM_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + "cpu/nnacl/intrinsics/sse/*.c" + "cpu/nnacl/intrinsics/avx/*.c" + "cpu/nnacl/assembly/avx/*.S" + ) + set_property(SOURCE ${NNACL_ASM_SRC} PROPERTY LANGUAGE C) + endif() + set(NNACL_SRC ${NNACL_C_SRC} ${NNACL_ASM_SRC}) + + file(GLOB CPU_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "cpu/*.cc" + "cpu/mkldnn/*.cc" + "cpu/ps/*.cc" + "cpu/quantum/*.cc" ) if(NOT ENABLE_MPI) @@ -102,7 +129,7 @@ if(ENABLE_GPU) # add_library(_mindspore_kernel_cuda_obj OBJECT ${CUDA_SRC_LIST}) endif() -set_property(SOURCE ${KERNEL_SRC_LIST} ${CPU_SRC_LIST} ${GPU_SRC_LIST} ${D_SRC_LIST} +set_property(SOURCE ${KERNEL_SRC_LIST} ${NNACL_SRC} ${CPU_SRC_LIST} ${GPU_SRC_LIST} ${D_SRC_LIST} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_KERNEL) -add_library(_mindspore_backend_kernel_compiler_obj OBJECT ${KERNEL_SRC_LIST} ${CPU_SRC_LIST} +add_library(_mindspore_backend_kernel_compiler_obj OBJECT ${KERNEL_SRC_LIST} ${NNACL_SRC} ${CPU_SRC_LIST} ${GPU_SRC_LIST} ${D_SRC_LIST} ${QUANTUM_SRC_LIST}) diff --git a/mindspore/lite/nnacl/CMakeLists.txt b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/CMakeLists.txt similarity index 100% rename from mindspore/lite/nnacl/CMakeLists.txt rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/CMakeLists.txt diff --git a/mindspore/lite/nnacl/README.md b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/README.md similarity index 100% rename from mindspore/lite/nnacl/README.md rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/README.md diff --git a/mindspore/lite/nnacl/adder.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/adder.h similarity index 87% rename from mindspore/lite/nnacl/adder.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/adder.h index 00c92796f3d..b62ab145b59 100644 --- a/mindspore/lite/nnacl/adder.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/adder.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ADDER_H_ -#define MINDSPORE_LITE_NNACL_ADDER_H_ +#ifndef MINDSPORE_NNACL_ADDER_H_ +#define MINDSPORE_NNACL_ADDER_H_ #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ extern "C" { #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ADDER_H_ +#endif // MINDSPORE_NNACL_ADDER_H_ diff --git a/mindspore/lite/nnacl/arg_min_max_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arg_min_max_parameter.h similarity index 88% rename from mindspore/lite/nnacl/arg_min_max_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arg_min_max_parameter.h index 9569d958ff4..f6cf61471c7 100644 --- a/mindspore/lite/nnacl/arg_min_max_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arg_min_max_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARG_MIN_MAX_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_ARG_MIN_MAX_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_ARG_MIN_MAX_PARAMETER_H_ +#define MINDSPORE_NNACL_ARG_MIN_MAX_PARAMETER_H_ #ifdef ENABLE_ARM64 #include @@ -51,4 +51,4 @@ typedef struct ArgMinMaxParameter { ArgElement *arg_elements_; } ArgMinMaxParameter; -#endif // MINDSPORE_LITE_NNACL_ARG_MIN_MAX_PARAMETER_H_ +#endif // MINDSPORE_NNACL_ARG_MIN_MAX_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/arithmetic.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic.h similarity index 89% rename from mindspore/lite/nnacl/arithmetic.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic.h index 198a2b6fcea..59fc552de43 100644 --- a/mindspore/lite/nnacl/arithmetic.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARTITHMETIC_H_ -#define MINDSPORE_LITE_NNACL_ARTITHMETIC_H_ +#ifndef MINDSPORE_NNACL_ARTITHMETIC_H_ +#define MINDSPORE_NNACL_ARTITHMETIC_H_ #include "nnacl/op_base.h" #include "nnacl/common_func.h" @@ -43,4 +43,4 @@ typedef struct ArithmeticParameter { int eltwise_mode_; // eltwise need } ArithmeticParameter; -#endif // MINDSPORE_LITE_NNACL_ARTITHMETIC_H_ +#endif // MINDSPORE_NNACL_ARTITHMETIC_H_ diff --git a/mindspore/lite/nnacl/arithmetic_self_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic_self_parameter.h similarity index 83% rename from mindspore/lite/nnacl/arithmetic_self_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic_self_parameter.h index d98eb72613c..a21e305ff59 100644 --- a/mindspore/lite/nnacl/arithmetic_self_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/arithmetic_self_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ +#define MINDSPORE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/errorcode.h" @@ -27,4 +27,4 @@ typedef struct ArithmeticSelfParameter { ArithSelfQuantArg quant_arg_; } ArithmeticSelfParameter; -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ +#endif // MINDSPORE_NNACL_ARITHMETIC_SELF_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDw3x3Int8BorderPixel.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDw3x3Int8BorderPixel.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDw3x3Int8BorderPixel.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDw3x3Int8BorderPixel.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Border.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Border.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Border.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Border.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Center.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Row.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Row.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwFp32Row.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwFp32Row.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwInt8Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwInt8Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8Center.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwInt8PostAlign4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8PostAlign4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwInt8PostAlign4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8PostAlign4.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwInt8PostAlign4PerChannel.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8PostAlign4PerChannel.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwInt8PostAlign4PerChannel.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8PostAlign4PerChannel.S diff --git a/mindspore/lite/nnacl/assembly/arm32/ConvDwInt8Row.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8Row.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/ConvDwInt8Row.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/ConvDwInt8Row.S diff --git a/mindspore/lite/nnacl/assembly/arm32/DeconvDwFp32Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwFp32Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/DeconvDwFp32Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwFp32Center.S diff --git a/mindspore/lite/nnacl/assembly/arm32/DeconvDwInt8Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwInt8Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/DeconvDwInt8Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwInt8Center.S diff --git a/mindspore/lite/nnacl/assembly/arm32/DeconvDwInt8Post.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwInt8Post.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/DeconvDwInt8Post.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/DeconvDwInt8Post.S diff --git a/mindspore/lite/nnacl/assembly/arm32/IndirectGemmInt16to32_8x4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/IndirectGemmInt16to32_8x4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/IndirectGemmInt16to32_8x4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/IndirectGemmInt16to32_8x4.S diff --git a/mindspore/lite/nnacl/assembly/arm32/IndirectGemmInt8_2x4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/IndirectGemmInt8_2x4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/IndirectGemmInt8_2x4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/IndirectGemmInt8_2x4.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatVecMulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatVecMulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatVecMulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatVecMulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulFp32Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulFp32Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32Opt.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulFp32Opt12x4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32Opt12x4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulFp32Opt12x4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulFp32Opt12x4.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulInt8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulInt8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulInt8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulInt8.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulInt8Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulInt8Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulInt8Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulInt8Opt.S diff --git a/mindspore/lite/nnacl/assembly/arm32/MatmulWinogradFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulWinogradFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/MatmulWinogradFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/MatmulWinogradFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm32/PostFuncBiasReluC4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PostFuncBiasReluC4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/PostFuncBiasReluC4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PostFuncBiasReluC4.S diff --git a/mindspore/lite/nnacl/assembly/arm32/PostFuncBiasReluC8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PostFuncBiasReluC8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/PostFuncBiasReluC8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PostFuncBiasReluC8.S diff --git a/mindspore/lite/nnacl/assembly/arm32/PreSum4x16Int8Peroc.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PreSum4x16Int8Peroc.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/PreSum4x16Int8Peroc.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PreSum4x16Int8Peroc.S diff --git a/mindspore/lite/nnacl/assembly/arm32/PreSum4x16Int8Pert.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PreSum4x16Int8Pert.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/PreSum4x16Int8Pert.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/PreSum4x16Int8Pert.S diff --git a/mindspore/lite/nnacl/assembly/arm32/TiledC4MatmulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/TiledC4MatmulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/TiledC4MatmulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/TiledC4MatmulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm32/WinogradTransLeft.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/WinogradTransLeft.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/WinogradTransLeft.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/WinogradTransLeft.S diff --git a/mindspore/lite/nnacl/assembly/arm32/WinogradTransRight.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/WinogradTransRight.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm32/WinogradTransRight.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm32/WinogradTransRight.S diff --git a/mindspore/lite/nnacl/assembly/arm64/AdderFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/AdderFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/AdderFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/AdderFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Corner.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Corner.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Corner.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Corner.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Horizontal.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Horizontal.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Horizontal.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Horizontal.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Stride1.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Stride1.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Stride1.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Stride1.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Stride2.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Stride2.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Stride2.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Stride2.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Vertical.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Vertical.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Fp32Vertical.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Fp32Vertical.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Corner.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Corner.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Corner.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Corner.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Horizontal.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Horizontal.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Horizontal.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Horizontal.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Stride2.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Stride2.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Stride2.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Stride2.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Vertical.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Vertical.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDw3x3Int8Vertical.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDw3x3Int8Vertical.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Border.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Border.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Border.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Border.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Center.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Indirect3x3.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Indirect3x3.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Indirect3x3.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Indirect3x3.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Indirect5x5.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Indirect5x5.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Indirect5x5.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Indirect5x5.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Row.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Row.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwFp32Row.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwFp32Row.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwInt8Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwInt8Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8Center.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwInt8PostAlign4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8PostAlign4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwInt8PostAlign4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8PostAlign4.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwInt8PostAlign4PerChannel.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8PostAlign4PerChannel.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwInt8PostAlign4PerChannel.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8PostAlign4PerChannel.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvDwInt8Row.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8Row.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvDwInt8Row.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvDwInt8Row.S diff --git a/mindspore/lite/nnacl/assembly/arm64/ConvFp32Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvFp32Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/ConvFp32Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/ConvFp32Center.S diff --git a/mindspore/lite/nnacl/assembly/arm64/DeconvDwFp32Border.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwFp32Border.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/DeconvDwFp32Border.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwFp32Border.S diff --git a/mindspore/lite/nnacl/assembly/arm64/DeconvDwFp32Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwFp32Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/DeconvDwFp32Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwFp32Center.S diff --git a/mindspore/lite/nnacl/assembly/arm64/DeconvDwInt8Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwInt8Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/DeconvDwInt8Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwInt8Center.S diff --git a/mindspore/lite/nnacl/assembly/arm64/DeconvDwInt8Post.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwInt8Post.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/DeconvDwInt8Post.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/DeconvDwInt8Post.S diff --git a/mindspore/lite/nnacl/assembly/arm64/IndirectGemmInt16to32_8x4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/IndirectGemmInt16to32_8x4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/IndirectGemmInt16to32_8x4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/IndirectGemmInt16to32_8x4.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatVecMulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatVecMulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatVecMulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatVecMulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulFp32Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulFp32Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulFp32Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulFp32Opt.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulInt8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulInt8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulInt8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulInt8.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulInt8Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulInt8Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulInt8Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulInt8Opt.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulR4Int8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulR4Int8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulR4Int8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulR4Int8.S diff --git a/mindspore/lite/nnacl/assembly/arm64/MatmulWinogradFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulWinogradFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/MatmulWinogradFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/MatmulWinogradFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm64/PostFuncBiasReluC4.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncBiasReluC4.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/PostFuncBiasReluC4.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncBiasReluC4.S diff --git a/mindspore/lite/nnacl/assembly/arm64/PostFuncBiasReluC8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncBiasReluC8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/PostFuncBiasReluC8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncBiasReluC8.S diff --git a/mindspore/lite/nnacl/assembly/arm64/PostFuncInt8C4Neon64.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncInt8C4Neon64.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/PostFuncInt8C4Neon64.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PostFuncInt8C4Neon64.S diff --git a/mindspore/lite/nnacl/assembly/arm64/PreSum4x16Int8Peroc.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PreSum4x16Int8Peroc.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/PreSum4x16Int8Peroc.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PreSum4x16Int8Peroc.S diff --git a/mindspore/lite/nnacl/assembly/arm64/PreSum4x16Int8Pert.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PreSum4x16Int8Pert.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/PreSum4x16Int8Pert.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/PreSum4x16Int8Pert.S diff --git a/mindspore/lite/nnacl/assembly/arm64/TiledC4MatmulFp32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/TiledC4MatmulFp32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/TiledC4MatmulFp32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/TiledC4MatmulFp32.S diff --git a/mindspore/lite/nnacl/assembly/arm64/WinogradTransLeft.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/WinogradTransLeft.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/WinogradTransLeft.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/WinogradTransLeft.S diff --git a/mindspore/lite/nnacl/assembly/arm64/WinogradTransRight.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/WinogradTransRight.S similarity index 100% rename from mindspore/lite/nnacl/assembly/arm64/WinogradTransRight.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm64/WinogradTransRight.S diff --git a/mindspore/lite/nnacl/assembly/avx/ConvDwFp32Avx3x3.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32Avx3x3.S similarity index 100% rename from mindspore/lite/nnacl/assembly/avx/ConvDwFp32Avx3x3.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32Avx3x3.S diff --git a/mindspore/lite/nnacl/assembly/avx/ConvDwFp32BorderAvx.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32BorderAvx.S similarity index 100% rename from mindspore/lite/nnacl/assembly/avx/ConvDwFp32BorderAvx.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32BorderAvx.S diff --git a/mindspore/lite/nnacl/assembly/avx/ConvDwFp32RowAvx.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32RowAvx.S similarity index 100% rename from mindspore/lite/nnacl/assembly/avx/ConvDwFp32RowAvx.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/ConvDwFp32RowAvx.S diff --git a/mindspore/lite/nnacl/assembly/avx/MatmulAvx.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/MatmulAvx.S similarity index 100% rename from mindspore/lite/nnacl/assembly/avx/MatmulAvx.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/avx/MatmulAvx.S diff --git a/mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Border.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Border.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Border.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Border.S diff --git a/mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Center.S diff --git a/mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Row.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Row.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/ConvDwFp16Row.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ConvDwFp16Row.S diff --git a/mindspore/lite/nnacl/assembly/fp16/DeconvDwFp16Border.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/DeconvDwFp16Border.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/DeconvDwFp16Border.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/DeconvDwFp16Border.S diff --git a/mindspore/lite/nnacl/assembly/fp16/DeconvDwFp16Center.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/DeconvDwFp16Center.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/DeconvDwFp16Center.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/DeconvDwFp16Center.S diff --git a/mindspore/lite/nnacl/assembly/fp16/Float16ToFloat32.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/Float16ToFloat32.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/Float16ToFloat32.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/Float16ToFloat32.S diff --git a/mindspore/lite/nnacl/assembly/fp16/Float32ToFloat16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/Float32ToFloat16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/Float32ToFloat16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/Float32ToFloat16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/IndirectGemmFp16_16x8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/IndirectGemmFp16_16x8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/IndirectGemmFp16_16x8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/IndirectGemmFp16_16x8.S diff --git a/mindspore/lite/nnacl/assembly/fp16/MatVecMulFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatVecMulFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/MatVecMulFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatVecMulFp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/MatmulFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/MatmulFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulFp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/MatmulFp16Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulFp16Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/MatmulFp16Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulFp16Opt.S diff --git a/mindspore/lite/nnacl/assembly/fp16/MatmulWinogradFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulWinogradFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/MatmulWinogradFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/MatmulWinogradFp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/PostFuncBiasReluC4Fp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/PostFuncBiasReluC4Fp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/PostFuncBiasReluC4Fp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/PostFuncBiasReluC4Fp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/PostFuncBiasReluC8Fp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/PostFuncBiasReluC8Fp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/PostFuncBiasReluC8Fp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/PostFuncBiasReluC8Fp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/TiledC4MatmulFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/TiledC4MatmulFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/TiledC4MatmulFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/TiledC4MatmulFp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/WinogradTransLeftFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/WinogradTransLeftFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/WinogradTransLeftFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/WinogradTransLeftFp16.S diff --git a/mindspore/lite/nnacl/assembly/fp16/WinogradTransRightFp16.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/WinogradTransRightFp16.S similarity index 100% rename from mindspore/lite/nnacl/assembly/fp16/WinogradTransRightFp16.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/WinogradTransRightFp16.S diff --git a/mindspore/lite/nnacl/assembly/opt/MatmulDpInt8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulDpInt8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/opt/MatmulDpInt8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulDpInt8.S diff --git a/mindspore/lite/nnacl/assembly/opt/MatmulDpInt8Opt.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulDpInt8Opt.S similarity index 100% rename from mindspore/lite/nnacl/assembly/opt/MatmulDpInt8Opt.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulDpInt8Opt.S diff --git a/mindspore/lite/nnacl/assembly/opt/MatmulOptR4Int8.S b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulOptR4Int8.S similarity index 100% rename from mindspore/lite/nnacl/assembly/opt/MatmulOptR4Int8.S rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/opt/MatmulOptR4Int8.S diff --git a/mindspore/lite/nnacl/assembly_global.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly_global.h similarity index 85% rename from mindspore/lite/nnacl/assembly_global.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly_global.h index 8ef79d8d0d0..2e92e91f343 100644 --- a/mindspore/lite/nnacl/assembly_global.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly_global.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ASSEMBLY_GLOBAL_H -#define MINDSPORE_LITE_NNACL_ASSEMBLY_GLOBAL_H +#ifndef MINDSPORE_NNACL_ASSEMBLY_GLOBAL_H +#define MINDSPORE_NNACL_ASSEMBLY_GLOBAL_H // clang-format off .macro asm_function fname @@ -33,4 +33,4 @@ _\fname: // clang-format on -#endif // MINDSPORE_LITE_NNACL_ASSEMBLY_GLOBAL_H +#endif // MINDSPORE_NNACL_ASSEMBLY_GLOBAL_H diff --git a/mindspore/lite/nnacl/base/arithmetic_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/arithmetic_base.c similarity index 100% rename from mindspore/lite/nnacl/base/arithmetic_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/arithmetic_base.c diff --git a/mindspore/lite/nnacl/base/arithmetic_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/arithmetic_base.h similarity index 83% rename from mindspore/lite/nnacl/base/arithmetic_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/arithmetic_base.h index 3e77c944c60..cc8231d54f2 100644 --- a/mindspore/lite/nnacl/base/arithmetic_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/arithmetic_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BASE_ARITHMETIC_BASE_H_ -#define MINDSPORE_LITE_NNACL_BASE_ARITHMETIC_BASE_H_ +#ifndef MINDSPORE_NNACL_BASE_ARITHMETIC_BASE_H_ +#define MINDSPORE_NNACL_BASE_ARITHMETIC_BASE_H_ #include "nnacl/arithmetic.h" #include "nnacl/nnacl_utils.h" @@ -31,4 +31,4 @@ void CalcMultiplesAndStrides(ArithmeticParameter *param); } #endif -#endif // MINDSPORE_LITE_NNACL_BASE_ARITHMETIC_BASE_H_ +#endif // MINDSPORE_NNACL_BASE_ARITHMETIC_BASE_H_ diff --git a/mindspore/lite/nnacl/base/batch_to_space_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/batch_to_space_base.c similarity index 100% rename from mindspore/lite/nnacl/base/batch_to_space_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/batch_to_space_base.c diff --git a/mindspore/lite/nnacl/base/batch_to_space_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/batch_to_space_base.h similarity index 86% rename from mindspore/lite/nnacl/base/batch_to_space_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/batch_to_space_base.h index a4fd9548a70..67724829701 100644 --- a/mindspore/lite/nnacl/base/batch_to_space_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/batch_to_space_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_BASE_H_ -#define MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_BASE_H_ +#ifndef MINDSPORE_NNACL_BATCH_TO_SPACE_BASE_H_ +#define MINDSPORE_NNACL_BATCH_TO_SPACE_BASE_H_ #include #include "nnacl/op_base.h" @@ -30,4 +30,4 @@ void BatchToSpaceForNHWC(const void *input, void *output, const int *in_shape, i } #endif -#endif // MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_BASE_H_ +#endif // MINDSPORE_NNACL_BATCH_TO_SPACE_BASE_H_ diff --git a/mindspore/lite/nnacl/base/cast_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/cast_base.h similarity index 95% rename from mindspore/lite/nnacl/base/cast_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/cast_base.h index 757007b0b34..caecc7e9297 100644 --- a/mindspore/lite/nnacl/base/cast_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/cast_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CAST_BASE_H_ -#define MINDSPORE_LITE_NNACL_CAST_BASE_H_ +#ifndef MINDSPORE_NNACL_CAST_BASE_H_ +#define MINDSPORE_NNACL_CAST_BASE_H_ #include "nnacl/op_base.h" #include "nnacl/nnacl_common.h" @@ -101,4 +101,4 @@ inline void BoolToInt32(const bool *input, int32_t *output, int number) { } #endif -#endif // MINDSPORE_LITE_NNACL_CAST_BASE_H_ +#endif // MINDSPORE_NNACL_CAST_BASE_H_ diff --git a/mindspore/lite/nnacl/base/concat_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/concat_base.c similarity index 100% rename from mindspore/lite/nnacl/base/concat_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/concat_base.c diff --git a/mindspore/lite/nnacl/base/concat_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/concat_base.h similarity index 85% rename from mindspore/lite/nnacl/base/concat_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/concat_base.h index ae6bc5da02e..6fefcabd3ef 100644 --- a/mindspore/lite/nnacl/base/concat_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/concat_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CONCAT_BASE_H_ -#define MINDSPORE_LITE_NNACL_FP32_CONCAT_BASE_H_ +#ifndef MINDSPORE_NNACL_FP32_CONCAT_BASE_H_ +#define MINDSPORE_NNACL_FP32_CONCAT_BASE_H_ #include #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ void Concat(void **input, int input_num, int axis, int **inputs_output_shape, si } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CONCAT_BASE_H_ +#endif // MINDSPORE_NNACL_FP32_CONCAT_BASE_H_ diff --git a/mindspore/lite/nnacl/base/conv1x1_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/conv1x1_base.c similarity index 100% rename from mindspore/lite/nnacl/base/conv1x1_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/conv1x1_base.c diff --git a/mindspore/lite/nnacl/base/conv1x1_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/conv1x1_base.h similarity index 84% rename from mindspore/lite/nnacl/base/conv1x1_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/conv1x1_base.h index fc2b63d7b0f..e6e5cefed87 100644 --- a/mindspore/lite/nnacl/base/conv1x1_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/conv1x1_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BASE_CONV1X1_BASE_H_ -#define MINDSPORE_LITE_NNACL_BASE_CONV1X1_BASE_H_ +#ifndef MINDSPORE_NNACL_BASE_CONV1X1_BASE_H_ +#define MINDSPORE_NNACL_BASE_CONV1X1_BASE_H_ #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ void Conv1x1InputPack(const void *src_ptr, void *dst_ptr, ConvParameter *conv_pa } #endif -#endif // MINDSPORE_LITE_NNACL_BASE_CONV1X1_BASE_H_ +#endif // MINDSPORE_NNACL_BASE_CONV1X1_BASE_H_ diff --git a/mindspore/lite/nnacl/base/depth_to_space_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/depth_to_space_base.c similarity index 100% rename from mindspore/lite/nnacl/base/depth_to_space_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/depth_to_space_base.c diff --git a/mindspore/lite/nnacl/base/depth_to_space_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/depth_to_space_base.h similarity index 85% rename from mindspore/lite/nnacl/base/depth_to_space_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/depth_to_space_base.h index 23474a4f44a..729959b6457 100644 --- a/mindspore/lite/nnacl/base/depth_to_space_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/depth_to_space_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_H_ -#define MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_H_ +#ifndef MINDSPORE_NNACL_DEPTH_TO_SPACE_H_ +#define MINDSPORE_NNACL_DEPTH_TO_SPACE_H_ #include #include "nnacl/depth_to_space_parameter.h" @@ -27,4 +27,4 @@ void DepthToSpaceForNHWC(const void *input, void *output, const int *in_shape, c } #endif -#endif // MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_H_ +#endif // MINDSPORE_NNACL_DEPTH_TO_SPACE_H_ diff --git a/mindspore/lite/nnacl/base/fill_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/fill_base.c similarity index 100% rename from mindspore/lite/nnacl/base/fill_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/fill_base.c diff --git a/mindspore/lite/nnacl/base/fill_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/fill_base.h similarity index 87% rename from mindspore/lite/nnacl/base/fill_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/fill_base.h index 79a100d83e5..caf3ebfc19b 100644 --- a/mindspore/lite/nnacl/base/fill_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/fill_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FILL_BASE_H_ -#define MINDSPORE_LITE_NNACL_FILL_BASE_H_ +#ifndef MINDSPORE_NNACL_FILL_BASE_H_ +#define MINDSPORE_NNACL_FILL_BASE_H_ #include "nnacl/op_base.h" #include "nnacl/errorcode.h" @@ -29,4 +29,4 @@ int FillInt32(int *output, int size, int data); } #endif -#endif // MINDSPORE_LITE_NNACL_FILL_BASE_H_ +#endif // MINDSPORE_NNACL_FILL_BASE_H_ diff --git a/mindspore/lite/nnacl/base/gather_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/gather_base.c similarity index 100% rename from mindspore/lite/nnacl/base/gather_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/gather_base.c diff --git a/mindspore/lite/nnacl/base/gather_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/gather_base.h similarity index 87% rename from mindspore/lite/nnacl/base/gather_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/gather_base.h index 1c3eb0c9b1b..f028af5c744 100644 --- a/mindspore/lite/nnacl/base/gather_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/gather_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GATHER_BASE_H_ -#define MINDSPORE_LITE_NNACL_GATHER_BASE_H_ +#ifndef MINDSPORE_NNACL_GATHER_BASE_H_ +#define MINDSPORE_NNACL_GATHER_BASE_H_ #include #include "nnacl/op_base.h" @@ -30,4 +30,4 @@ int Gather(const void *input, int outer_size, int inner_size, int limit, const i } #endif -#endif // MINDSPORE_LITE_NNACL_GATHER_BASE_H_ +#endif // MINDSPORE_NNACL_GATHER_BASE_H_ diff --git a/mindspore/lite/nnacl/base/minimal_filtering_generator.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/minimal_filtering_generator.c similarity index 100% rename from mindspore/lite/nnacl/base/minimal_filtering_generator.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/minimal_filtering_generator.c diff --git a/mindspore/lite/nnacl/base/minimal_filtering_generator.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/minimal_filtering_generator.h similarity index 92% rename from mindspore/lite/nnacl/base/minimal_filtering_generator.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/minimal_filtering_generator.h index 46f4357b112..a72f98d54fb 100644 --- a/mindspore/lite/nnacl/base/minimal_filtering_generator.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/minimal_filtering_generator.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ -#define MINDSPORE_LITE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ +#ifndef MINDSPORE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ +#define MINDSPORE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ #ifdef ENABLE_ARM #include @@ -60,4 +60,4 @@ void MatrixMultiplyVec(const MS_FLOAT32X4 *matrix_a, const MS_FLOAT32X4 *matrix_ } #endif -#endif // MINDSPORE_LITE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ +#endif // MINDSPORE_NNACL_MINIMAL_FILTERING_GENERATOR_H_ diff --git a/mindspore/lite/nnacl/base/slice_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/slice_base.c similarity index 100% rename from mindspore/lite/nnacl/base/slice_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/slice_base.c diff --git a/mindspore/lite/nnacl/base/slice_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/slice_base.h similarity index 87% rename from mindspore/lite/nnacl/base/slice_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/slice_base.h index 35ad748ecac..ab2b876ef69 100644 --- a/mindspore/lite/nnacl/base/slice_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/slice_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BASE_SLICE_BASE_H_ -#define MINDSPORE_LITE_NNACL_BASE_SLICE_BASE_H_ +#ifndef MINDSPORE_NNACL_BASE_SLICE_BASE_H_ +#define MINDSPORE_NNACL_BASE_SLICE_BASE_H_ #include "nnacl/op_base.h" #include "nnacl/errorcode.h" @@ -31,4 +31,4 @@ void DoSliceNoParallel(const void *input, void *output, SliceParameter *param, i } #endif -#endif // MINDSPORE_LITE_NNACL_BASE_SLICE_BASE_H_ +#endif // MINDSPORE_NNACL_BASE_SLICE_BASE_H_ diff --git a/mindspore/lite/nnacl/base/space_to_depth_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.c similarity index 100% rename from mindspore/lite/nnacl/base/space_to_depth_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.c diff --git a/mindspore/lite/nnacl/base/space_to_depth_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.h similarity index 100% rename from mindspore/lite/nnacl/base/space_to_depth_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/space_to_depth_base.h diff --git a/mindspore/lite/nnacl/base/split_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/split_base.c similarity index 100% rename from mindspore/lite/nnacl/base/split_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/split_base.c diff --git a/mindspore/lite/nnacl/base/split_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/split_base.h similarity index 85% rename from mindspore/lite/nnacl/base/split_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/split_base.h index 3114e83f6ca..c6b554ae6a9 100644 --- a/mindspore/lite/nnacl/base/split_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/split_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_NNACL_SPLIT_BASE_H_ -#define MINDSPORE_LITE_NNACL_NNACL_SPLIT_BASE_H_ +#ifndef MINDSPORE_NNACL_NNACL_SPLIT_BASE_H_ +#define MINDSPORE_NNACL_NNACL_SPLIT_BASE_H_ #include "nnacl/op_base.h" #include "nnacl/split_parameter.h" @@ -29,4 +29,4 @@ int DoSplit(void *in_data, void **out_data, const int *input_shape, int offset, } #endif -#endif // MINDSPORE_LITE_NNACL_NNACL_SPLIT_BASE_H_ +#endif // MINDSPORE_NNACL_NNACL_SPLIT_BASE_H_ diff --git a/mindspore/lite/nnacl/base/stack_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/stack_base.c similarity index 100% rename from mindspore/lite/nnacl/base/stack_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/stack_base.c diff --git a/mindspore/lite/nnacl/base/stack_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/stack_base.h similarity index 87% rename from mindspore/lite/nnacl/base/stack_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/stack_base.h index 0ccfa7a5e3d..83c364c90f7 100644 --- a/mindspore/lite/nnacl/base/stack_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/stack_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STACK_H_ -#define MINDSPORE_LITE_NNACL_STACK_H_ +#ifndef MINDSPORE_NNACL_STACK_H_ +#define MINDSPORE_NNACL_STACK_H_ #include #include "nnacl/op_base.h" @@ -27,4 +27,4 @@ void Stack(char **inputs, char *output, size_t input_num, size_t copy_size, size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_STACK_H_ +#endif // MINDSPORE_NNACL_STACK_H_ diff --git a/mindspore/lite/nnacl/base/tile_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/tile_base.c similarity index 100% rename from mindspore/lite/nnacl/base/tile_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/tile_base.c diff --git a/mindspore/lite/nnacl/base/tile_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/tile_base.h similarity index 91% rename from mindspore/lite/nnacl/base/tile_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/tile_base.h index 7a499a3aa7b..0af167e93b4 100644 --- a/mindspore/lite/nnacl/base/tile_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/tile_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BASE_TILE_H_ -#define MINDSPORE_LITE_NNACL_BASE_TILE_H_ +#ifndef MINDSPORE_NNACL_BASE_TILE_H_ +#define MINDSPORE_NNACL_BASE_TILE_H_ #include "nnacl/op_base.h" @@ -50,4 +50,4 @@ void TileSimple(void *input_data, void *output_data, size_t begin, size_t end, T } #endif -#endif // MINDSPORE_LITE_NNACL_BASE_TILE_H_ +#endif // MINDSPORE_NNACL_BASE_TILE_H_ diff --git a/mindspore/lite/nnacl/base/unstack_base.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/unstack_base.c similarity index 100% rename from mindspore/lite/nnacl/base/unstack_base.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/unstack_base.c diff --git a/mindspore/lite/nnacl/base/unstack_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/unstack_base.h similarity index 87% rename from mindspore/lite/nnacl/base/unstack_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/unstack_base.h index ffc4637a994..d4915a4823c 100644 --- a/mindspore/lite/nnacl/base/unstack_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/unstack_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSTACK_H_ -#define MINDSPORE_LITE_NNACL_UNSTACK_H_ +#ifndef MINDSPORE_NNACL_UNSTACK_H_ +#define MINDSPORE_NNACL_UNSTACK_H_ #include #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ void Unstack(const void *input, void **output, UnstackParameter *para, int data_ } #endif -#endif // MINDSPORE_LITE_NNACL_UNSTACK_H_ +#endif // MINDSPORE_NNACL_UNSTACK_H_ diff --git a/mindspore/lite/nnacl/base/zeroslike_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/zeroslike_base.h similarity index 85% rename from mindspore/lite/nnacl/base/zeroslike_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/zeroslike_base.h index a778b9ae95e..333aa8d8060 100644 --- a/mindspore/lite/nnacl/base/zeroslike_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/zeroslike_base.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ZEROSLIKE_BASE_H_ -#define MINDSPORE_LITE_NNACL_ZEROSLIKE_BASE_H_ +#ifndef MINDSPORE_NNACL_ZEROSLIKE_BASE_H_ +#define MINDSPORE_NNACL_ZEROSLIKE_BASE_H_ #include "nnacl/op_base.h" @@ -31,4 +31,4 @@ static inline void ApproximateZerosLike(void *output, int number, int data_size) } #endif -#endif // MINDSPORE_LITE_NNACL_ZEROSLIKE_BASE_H_ +#endif // MINDSPORE_NNACL_ZEROSLIKE_BASE_H_ diff --git a/mindspore/lite/nnacl/batch_to_space.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batch_to_space.h similarity index 85% rename from mindspore/lite/nnacl/batch_to_space.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batch_to_space.h index 7a8a76003b1..646792b6148 100644 --- a/mindspore/lite/nnacl/batch_to_space.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batch_to_space.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_H_ -#define MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_H_ +#ifndef MINDSPORE_NNACL_BATCH_TO_SPACE_H_ +#define MINDSPORE_NNACL_BATCH_TO_SPACE_H_ #include #include "nnacl/op_base.h" @@ -28,4 +28,4 @@ typedef struct BatchToSpaceParameter { bool no_crop_; } BatchToSpaceParameter; -#endif // MINDSPORE_LITE_NNACL_FP32_BATCH_TO_SPACE_H_ +#endif // MINDSPORE_NNACL_FP32_BATCH_TO_SPACE_H_ diff --git a/mindspore/lite/nnacl/batchnorm_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batchnorm_parameter.h similarity index 83% rename from mindspore/lite/nnacl/batchnorm_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batchnorm_parameter.h index 8e460cf4381..2b2cef70ce6 100644 --- a/mindspore/lite/nnacl/batchnorm_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/batchnorm_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BATCHNORM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_BATCHNORM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_BATCHNORM_PARAMETER_H_ +#define MINDSPORE_NNACL_BATCHNORM_PARAMETER_H_ #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ typedef struct BatchNormParameter { bool fused_; } BatchNormParameter; -#endif // MINDSPORE_LITE_NNACL_BATCHNORM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_BATCHNORM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/broadcast_to_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/broadcast_to_parameter.h similarity index 84% rename from mindspore/lite/nnacl/broadcast_to_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/broadcast_to_parameter.h index dd9823729b6..074dbb9111c 100644 --- a/mindspore/lite/nnacl/broadcast_to_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/broadcast_to_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ +#define MINDSPORE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ #include "nnacl/op_base.h" @@ -31,4 +31,4 @@ typedef struct BroadcastShapeInfo { int output_shape_size_; } BroadcastShapeInfo; -#endif // MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ +#endif // MINDSPORE_NNACL_FP32_BROADCAST_TO_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/cast_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/cast_parameter.h similarity index 83% rename from mindspore/lite/nnacl/cast_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/cast_parameter.h index 4a56bc3a987..7a1e1f96c07 100644 --- a/mindspore/lite/nnacl/cast_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/cast_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CAST_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_CAST_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_CAST_PARAMETER_H_ +#define MINDSPORE_NNACL_CAST_PARAMETER_H_ #include "nnacl/op_base.h" @@ -24,4 +24,4 @@ typedef struct CastParameter { int src_type_; } CastParameter; -#endif // MINDSPORE_LITE_NNACL_CAST_PARAMETER_H_ +#endif // MINDSPORE_NNACL_CAST_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/common_func.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/common_func.c similarity index 100% rename from mindspore/lite/nnacl/common_func.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/common_func.c diff --git a/mindspore/lite/nnacl/common_func.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/common_func.h similarity index 94% rename from mindspore/lite/nnacl/common_func.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/common_func.h index 0ab52e62b77..f7ca4f0b2c6 100644 --- a/mindspore/lite/nnacl/common_func.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/common_func.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_COMMON_FUNC_H_ -#define MINDSPORE_LITE_NNACL_COMMON_FUNC_H_ +#ifndef MINDSPORE_NNACL_COMMON_FUNC_H_ +#define MINDSPORE_NNACL_COMMON_FUNC_H_ #include #include "nnacl/op_base.h" @@ -74,4 +74,4 @@ void Relu(float *data, size_t element4); } #endif -#endif /* MINDSPORE_LITE_NNACL_COMMON_FUNC_H_ */ +#endif /* MINDSPORE_NNACL_COMMON_FUNC_H_ */ diff --git a/mindspore/lite/nnacl/concat_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/concat_parameter.h similarity index 86% rename from mindspore/lite/nnacl/concat_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/concat_parameter.h index 35386464e5f..a09201aa7c6 100644 --- a/mindspore/lite/nnacl/concat_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/concat_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONCAT_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_CONCAT_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_CONCAT_PARAMETER_H_ +#define MINDSPORE_NNACL_CONCAT_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -32,4 +32,4 @@ typedef struct ConcatParameter { int64_t count_unit_; } ConcatParameter; -#endif // MINDSPORE_LITE_NNACL_CONCAT_PARAMETER_H_ +#endif // MINDSPORE_NNACL_CONCAT_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/constant_of_shape_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/constant_of_shape_parameter.h similarity index 82% rename from mindspore/lite/nnacl/constant_of_shape_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/constant_of_shape_parameter.h index 813fdf488da..ec41dafd118 100644 --- a/mindspore/lite/nnacl/constant_of_shape_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/constant_of_shape_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ +#define MINDSPORE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -28,4 +28,4 @@ typedef struct ConstantOfShapeParameter { int element_size_; } ConstantOfShapeParameter; -#endif // MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_CONSTANT_OF_SHAPE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/conv_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/conv_parameter.h similarity index 95% rename from mindspore/lite/nnacl/conv_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/conv_parameter.h index 5fa4e215d54..bb322add22d 100644 --- a/mindspore/lite/nnacl/conv_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/conv_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONV_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_CONV_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_CONV_PARAMETER_H_ +#define MINDSPORE_NNACL_CONV_PARAMETER_H_ #ifdef ENABLE_NEON #include @@ -128,4 +128,4 @@ typedef struct DeConvParam { int out_tile_w_; } DeConvParam; -#endif // MINDSPORE_LITE_NNACL_CONV_PARAMETER_H_ +#endif // MINDSPORE_NNACL_CONV_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/crop_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/crop_parameter.h similarity index 87% rename from mindspore/lite/nnacl/crop_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/crop_parameter.h index 6730a0be6e8..c9f8113df5f 100644 --- a/mindspore/lite/nnacl/crop_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/crop_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CROP_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_CROP_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_CROP_PARAMETER_H_ +#define MINDSPORE_NNACL_CROP_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -33,4 +33,4 @@ typedef struct CropParameter { int input_dim_; } CropParameter; -#endif // MINDSPORE_LITE_NNACL_CROP_PARAMETER_H_ +#endif // MINDSPORE_NNACL_CROP_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/depth_to_space_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/depth_to_space_parameter.h similarity index 85% rename from mindspore/lite/nnacl/depth_to_space_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/depth_to_space_parameter.h index 0c9dfe9ba45..f107c6177a7 100644 --- a/mindspore/lite/nnacl/depth_to_space_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/depth_to_space_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ +#define MINDSPORE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct DepthToSpaceParameter { @@ -32,4 +32,4 @@ typedef struct DepthToSpaceParameter { uint8_t data_type_size_; } DepthToSpaceParameter; -#endif // MINDSPORE_LITE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_DEPTH_TO_SPACE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/detection_post_process_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/detection_post_process_parameter.h similarity index 86% rename from mindspore/lite/nnacl/detection_post_process_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/detection_post_process_parameter.h index f7bc270a6ca..bd8b00af324 100644 --- a/mindspore/lite/nnacl/detection_post_process_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/detection_post_process_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ +#define MINDSPORE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct DetectionPostProcessParameter { @@ -45,4 +45,4 @@ typedef struct DetectionPostProcessParameter { void *selected_; } DetectionPostProcessParameter; -#endif // MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ +#endif // MINDSPORE_NNACL_DETECTION_POST_PROCESS_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/errorcode.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/errorcode.h similarity index 93% rename from mindspore/lite/nnacl/errorcode.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/errorcode.h index 18a50290ccc..18f93af9f85 100644 --- a/mindspore/lite/nnacl/errorcode.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/errorcode.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ERRORCODE_H_ -#define MINDSPORE_LITE_NNACL_ERRORCODE_H_ +#ifndef MINDSPORE_NNACL_ERRORCODE_H_ +#define MINDSPORE_NNACL_ERRORCODE_H_ typedef enum ErrorCodeCommonEnum { NNACL_OK = 0, @@ -59,4 +59,4 @@ typedef enum ErrorCodeInt8OpEnum { NNACL_ERRCODE_OP_INT8_END = 49999 } ErrorCodeInt8OpEnums; -#endif // MINDSPORE_LITE_NNACL_ERRORCODE_H_ +#endif // MINDSPORE_NNACL_ERRORCODE_H_ diff --git a/mindspore/lite/nnacl/fill_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fill_parameter.h similarity index 84% rename from mindspore/lite/nnacl/fill_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fill_parameter.h index dbde073817a..0b57d2c4a45 100644 --- a/mindspore/lite/nnacl/fill_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fill_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FILL_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_FILL_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_FILL_PARAMETER_H_ +#define MINDSPORE_NNACL_FILL_PARAMETER_H_ #include "nnacl/op_base.h" @@ -25,4 +25,4 @@ typedef struct FillParameter { int num_dims_; } FillParameter; -#endif // MINDSPORE_LITE_NNACL_FILL_PARAMETER_H_ +#endif // MINDSPORE_NNACL_FILL_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/fp16/activation_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/activation_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/activation_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/activation_fp16.c diff --git a/mindspore/lite/nnacl/fp16/activation_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/activation_fp16.h similarity index 90% rename from mindspore/lite/nnacl/fp16/activation_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/activation_fp16.h index 64634904902..e2879626023 100644 --- a/mindspore/lite/nnacl/fp16/activation_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/activation_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_ACTIVATION_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_ACTIVATION_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_ACTIVATION_FP16_H_ +#define MINDSPORE_NNACL_FP16_ACTIVATION_FP16_H_ #ifdef ENABLE_NEON #include @@ -38,4 +38,4 @@ int GeluFp16(const float16_t *src, int length, float16_t *dst, bool approximate) #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_ACTIVATION_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_ACTIVATION_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/arg_min_max_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arg_min_max_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/arg_min_max_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arg_min_max_fp16.c diff --git a/mindspore/lite/nnacl/fp16/arg_min_max_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arg_min_max_fp16.h similarity index 86% rename from mindspore/lite/nnacl/fp16/arg_min_max_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arg_min_max_fp16.h index e969b1e6273..c762b2b9054 100644 --- a/mindspore/lite/nnacl/fp16/arg_min_max_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arg_min_max_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_ARG_MIN_MAX_H_ -#define MINDSPORE_LITE_NNACL_FP16_ARG_MIN_MAX_H_ +#ifndef MINDSPORE_NNACL_FP16_ARG_MIN_MAX_H_ +#define MINDSPORE_NNACL_FP16_ARG_MIN_MAX_H_ #include #include "nnacl/arg_min_max_parameter.h" @@ -29,4 +29,4 @@ void ArgMinMaxFp16(const float16_t *input, void *output, float16_t *output_value } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_ARG_MIN_MAX_H_ +#endif // MINDSPORE_NNACL_FP16_ARG_MIN_MAX_H_ diff --git a/mindspore/lite/nnacl/fp16/arithmetic_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/arithmetic_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_fp16.c diff --git a/mindspore/lite/nnacl/fp16/arithmetic_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_fp16.h similarity index 98% rename from mindspore/lite/nnacl/fp16/arithmetic_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_fp16.h index 10c34073e86..e500aaccd45 100644 --- a/mindspore/lite/nnacl/fp16/arithmetic_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_ARITHMETIC_FP16_H_ +#define MINDSPORE_NNACL_FP16_ARITHMETIC_FP16_H_ #ifdef ENABLE_NEON #include @@ -123,4 +123,4 @@ int ElementGreaterEqualFp16(const float16_t *input0, const float16_t *input1, ui } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_ARITHMETIC_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/arithmetic_self_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_self_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/arithmetic_self_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_self_fp16.c diff --git a/mindspore/lite/nnacl/fp16/arithmetic_self_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_self_fp16.h similarity index 91% rename from mindspore/lite/nnacl/fp16/arithmetic_self_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_self_fp16.h index 017f08f9d73..3b94e104066 100644 --- a/mindspore/lite/nnacl/fp16/arithmetic_self_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/arithmetic_self_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ +#define MINDSPORE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ #ifdef ENABLE_NEON #include @@ -56,4 +56,4 @@ int ElementErfFp16(float16_t *input, float16_t *output, int element_size); } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_ARITHMETIC_SELF_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/batchnorm_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/batchnorm_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/batchnorm_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/batchnorm_fp16.c diff --git a/mindspore/lite/nnacl/fp16/batchnorm_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/batchnorm_fp16.h similarity index 100% rename from mindspore/lite/nnacl/fp16/batchnorm_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/batchnorm_fp16.h diff --git a/mindspore/lite/nnacl/fp16/cast_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/cast_fp16.h similarity index 92% rename from mindspore/lite/nnacl/fp16/cast_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/cast_fp16.h index 7493196fd1b..d7136cd1ae5 100644 --- a/mindspore/lite/nnacl/fp16/cast_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/cast_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CAST_FP16_H_ -#define MINDSPORE_LITE_NNACL_CAST_FP16_H_ +#ifndef MINDSPORE_NNACL_CAST_FP16_H_ +#define MINDSPORE_NNACL_CAST_FP16_H_ #include #include "nnacl/op_base.h" @@ -62,4 +62,4 @@ inline void Float16ToFloat32(const float16_t *input, float *output, int number) #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CAST_FP16_H_ +#endif // MINDSPORE_NNACL_CAST_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/common_func_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/common_func_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/common_func_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/common_func_fp16.c diff --git a/mindspore/lite/nnacl/fp16/common_func_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/common_func_fp16.h similarity index 90% rename from mindspore/lite/nnacl/fp16/common_func_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/common_func_fp16.h index e559951bf74..b6abd3e2677 100644 --- a/mindspore/lite/nnacl/fp16/common_func_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/common_func_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_COMMON_FUNC_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_COMMON_FUNC_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_COMMON_FUNC_FP16_H_ +#define MINDSPORE_NNACL_FP16_COMMON_FUNC_FP16_H_ #include #include "nnacl/op_base.h" @@ -38,4 +38,4 @@ void PostFuncBiasReluC4Fp16(float16_t *dst, const float16_t *src, const float16_ #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_COMMON_FUNC_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_COMMON_FUNC_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/constant_of_shape_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/constant_of_shape_fp16.h similarity index 84% rename from mindspore/lite/nnacl/fp16/constant_of_shape_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/constant_of_shape_fp16.h index a414b50b40c..6c42506a467 100644 --- a/mindspore/lite/nnacl/fp16/constant_of_shape_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/constant_of_shape_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ +#define MINDSPORE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ #ifdef ENABLE_NEON #include @@ -38,4 +38,4 @@ inline int ConstantOfShapeFp16(float16_t *output, int start, int end, float16_t } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_CONSTANT_OF_SHAPE_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/conv_depthwise_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_depthwise_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/conv_depthwise_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_depthwise_fp16.c diff --git a/mindspore/lite/nnacl/fp16/conv_depthwise_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_depthwise_fp16.h similarity index 94% rename from mindspore/lite/nnacl/fp16/conv_depthwise_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_depthwise_fp16.h index 75291d79fdc..80c53471860 100644 --- a/mindspore/lite/nnacl/fp16/conv_depthwise_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_depthwise_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ +#define MINDSPORE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ #include "nnacl/conv_parameter.h" #include "nnacl/fp32/conv_depthwise_fp32.h" @@ -54,4 +54,4 @@ void DeconvDwC8Fp16(float16_t *output_data, const float16_t *input_data, const f } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_CONV_DEPTHWISE_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/conv_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/conv_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.c diff --git a/mindspore/lite/nnacl/fp16/conv_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.h similarity index 94% rename from mindspore/lite/nnacl/fp16/conv_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.h index b38b2854ea3..8ecde2bc6fe 100644 --- a/mindspore/lite/nnacl/fp16/conv_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/conv_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_CONV_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_CONV_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_CONV_FP16_H_ +#define MINDSPORE_NNACL_FP16_CONV_FP16_H_ #include #include "nnacl/conv_parameter.h" @@ -54,4 +54,4 @@ void ConvWinogardFp16(float16_t *input_data, float16_t *trans_weight, const floa } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_CONV_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_CONV_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/crop_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/crop_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/crop_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/crop_fp16.c diff --git a/mindspore/lite/nnacl/fp16/crop_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/crop_fp16.h similarity index 89% rename from mindspore/lite/nnacl/fp16/crop_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/crop_fp16.h index 18530b674b4..6efa3a98375 100644 --- a/mindspore/lite/nnacl/fp16/crop_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/crop_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_CROP_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_CROP_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_CROP_FP16_H_ +#define MINDSPORE_NNACL_FP16_CROP_FP16_H_ #include #include "nnacl/op_base.h" @@ -33,4 +33,4 @@ void Fp16Crop4D(const float16_t *input, float16_t *output, int task_id, CropPara } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_CROP_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_CROP_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/deconv_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/deconv_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_fp16.c diff --git a/mindspore/lite/nnacl/fp16/deconv_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_fp16.h similarity index 86% rename from mindspore/lite/nnacl/fp16/deconv_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_fp16.h index f0959305431..b1de538b19f 100644 --- a/mindspore/lite/nnacl/fp16/deconv_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_DECONV_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_DECONV_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_DECONV_FP16_H_ +#define MINDSPORE_NNACL_FP16_DECONV_FP16_H_ #include #include @@ -33,4 +33,4 @@ int DeConvPostFp16(const float16_t *src, float16_t *tmp, const float16_t *bias, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_DECONV_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_DECONV_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/deconv_winograd_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_winograd_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/deconv_winograd_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_winograd_fp16.c diff --git a/mindspore/lite/nnacl/fp16/deconv_winograd_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_winograd_fp16.h similarity index 90% rename from mindspore/lite/nnacl/fp16/deconv_winograd_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_winograd_fp16.h index c4a4f9283ee..cfe9a40e5a8 100644 --- a/mindspore/lite/nnacl/fp16/deconv_winograd_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/deconv_winograd_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ +#define MINDSPORE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ #include "nnacl/fp16/winograd_transform_fp16.h" @@ -45,4 +45,4 @@ void WinogradTransRightFp16(const float16_t *S, const float16_t *B, float16_t *M } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_DECONV_WINOGRAD_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/exp_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/exp_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/exp_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/exp_fp16.c diff --git a/mindspore/lite/nnacl/fp16/exp_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/exp_fp16.h similarity index 95% rename from mindspore/lite/nnacl/fp16/exp_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/exp_fp16.h index f9db27c09e1..8bc71c38054 100644 --- a/mindspore/lite/nnacl/fp16/exp_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/exp_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_EXP_H_ -#define MINDSPORE_LITE_NNACL_FP16_EXP_H_ +#ifndef MINDSPORE_NNACL_FP16_EXP_H_ +#define MINDSPORE_NNACL_FP16_EXP_H_ #include "nnacl/op_base.h" @@ -67,4 +67,4 @@ static inline void single_exp_fp16(float16_t src, float16_t *dst) { } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_EXP_H_ +#endif // MINDSPORE_NNACL_FP16_EXP_H_ diff --git a/mindspore/lite/nnacl/fp16/gru_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/gru_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/gru_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/gru_fp16.c diff --git a/mindspore/lite/nnacl/fp16/gru_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/gru_fp16.h similarity index 88% rename from mindspore/lite/nnacl/fp16/gru_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/gru_fp16.h index 4f4485748d3..612532147dd 100644 --- a/mindspore/lite/nnacl/fp16/gru_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/gru_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_GRU_H_ -#define MINDSPORE_LITE_NNACL_FP16_GRU_H_ +#ifndef MINDSPORE_NNACL_FP16_GRU_H_ +#define MINDSPORE_NNACL_FP16_GRU_H_ #include "nnacl/gru_parameter.h" #ifdef __cplusplus @@ -27,4 +27,4 @@ void GruFp16(float16_t *output, const float16_t *input, const float16_t *weight_ } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_GRU_H_ +#endif // MINDSPORE_NNACL_FP16_GRU_H_ diff --git a/mindspore/lite/nnacl/fp16/instance_norm_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/instance_norm_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/instance_norm_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/instance_norm_fp16.c diff --git a/mindspore/lite/nnacl/fp16/instance_norm_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/instance_norm_fp16.h similarity index 85% rename from mindspore/lite/nnacl/fp16/instance_norm_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/instance_norm_fp16.h index e6fc99331f4..e22bd885197 100644 --- a/mindspore/lite/nnacl/fp16/instance_norm_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/instance_norm_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_INSTANCE_NORM_H_ -#define MINDSPORE_LITE_NNACL_FP16_INSTANCE_NORM_H_ +#ifndef MINDSPORE_NNACL_FP16_INSTANCE_NORM_H_ +#define MINDSPORE_NNACL_FP16_INSTANCE_NORM_H_ #include "nnacl/instance_norm_parameter.h" @@ -28,4 +28,4 @@ int InstanceNormFp16(const float16_t *src_data, float16_t *dst_data, const float } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_INSTANCE_NORM_H_ +#endif // MINDSPORE_NNACL_FP16_INSTANCE_NORM_H_ diff --git a/mindspore/lite/nnacl/fp16/log_softmax_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/log_softmax_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/log_softmax_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/log_softmax_fp16.c diff --git a/mindspore/lite/nnacl/fp16/log_softmax_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/log_softmax_fp16.h similarity index 100% rename from mindspore/lite/nnacl/fp16/log_softmax_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/log_softmax_fp16.h diff --git a/mindspore/lite/nnacl/fp16/lstm_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/lstm_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/lstm_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/lstm_fp16.c diff --git a/mindspore/lite/nnacl/fp16/lstm_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/lstm_fp16.h similarity index 93% rename from mindspore/lite/nnacl/fp16/lstm_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/lstm_fp16.h index fff951d8adf..5972ae91567 100644 --- a/mindspore/lite/nnacl/fp16/lstm_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/lstm_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_LSTM_H_ -#define MINDSPORE_LITE_NNACL_FP16_LSTM_H_ +#ifndef MINDSPORE_NNACL_FP16_LSTM_H_ +#define MINDSPORE_NNACL_FP16_LSTM_H_ #include "nnacl/lstm_parameter.h" #ifdef __cplusplus @@ -46,4 +46,4 @@ void LstmFp16(float16_t *output, const float16_t *input, const float16_t *weight } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_LSTM_H_ +#endif // MINDSPORE_NNACL_FP16_LSTM_H_ diff --git a/mindspore/lite/nnacl/fp16/matmul_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matmul_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/matmul_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matmul_fp16.c diff --git a/mindspore/lite/nnacl/fp16/matmul_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matmul_fp16.h similarity index 95% rename from mindspore/lite/nnacl/fp16/matmul_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matmul_fp16.h index e2e7a80cc25..113553ef597 100644 --- a/mindspore/lite/nnacl/fp16/matmul_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matmul_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_MATMUL_H_ -#define MINDSPORE_LITE_NNACL_FP16_MATMUL_H_ +#ifndef MINDSPORE_NNACL_FP16_MATMUL_H_ +#define MINDSPORE_NNACL_FP16_MATMUL_H_ #include #include @@ -65,4 +65,4 @@ void RowMajor2ColMajorFp16(const void *src, float16_t *dst, int row, int col, bo } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_MATMUL_H_ +#endif // MINDSPORE_NNACL_FP16_MATMUL_H_ diff --git a/mindspore/lite/nnacl/fp16/matrix_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matrix_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/matrix_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matrix_fp16.c diff --git a/mindspore/lite/nnacl/fp16/matrix_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matrix_fp16.h similarity index 88% rename from mindspore/lite/nnacl/fp16/matrix_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matrix_fp16.h index cfa956ab0a4..b554440c4e0 100644 --- a/mindspore/lite/nnacl/fp16/matrix_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/matrix_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_MATRIX_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_MATRIX_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_MATRIX_FP16_H_ +#define MINDSPORE_NNACL_FP16_MATRIX_FP16_H_ #include #include @@ -33,4 +33,4 @@ void MatrixMultiplyWinogradFp16(const float16_t *matix_a, const float16_t *matri } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_MATRIX_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_MATRIX_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/pack_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/pack_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.c diff --git a/mindspore/lite/nnacl/fp16/pack_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.h similarity index 95% rename from mindspore/lite/nnacl/fp16/pack_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.h index b49a35b4797..5f8f1632c07 100644 --- a/mindspore/lite/nnacl/fp16/pack_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_PACK_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_PACK_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_PACK_FP16_H_ +#define MINDSPORE_NNACL_FP16_PACK_FP16_H_ #ifdef ENABLE_NEON #include @@ -76,4 +76,4 @@ void PackNHWC8ToNHWCFp16(float16_t *src, float16_t *dst, int batch, int plane, i } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_PACK_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_PACK_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/pad_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pad_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/pad_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pad_fp16.c diff --git a/mindspore/lite/nnacl/fp16/pad_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pad_fp16.h similarity index 88% rename from mindspore/lite/nnacl/fp16/pad_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pad_fp16.h index 058f26c2f90..514e9f3fbc7 100644 --- a/mindspore/lite/nnacl/fp16/pad_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pad_fp16.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_PAD_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_PAD_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_PAD_FP16_H_ +#define MINDSPORE_NNACL_FP16_PAD_FP16_H_ #ifdef ENABLE_NEON #include @@ -32,4 +32,4 @@ void MirrorPadFp16(const float16_t *input_data, float16_t *output_data, const in } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_PAD_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_PAD_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/pooling_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/pooling_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c diff --git a/mindspore/lite/nnacl/fp16/pooling_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.h similarity index 87% rename from mindspore/lite/nnacl/fp16/pooling_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.h index 9dfd043ecc8..f3dec61de72 100644 --- a/mindspore/lite/nnacl/fp16/pooling_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_POOLING_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_POOLING_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_POOLING_FP16_H_ +#define MINDSPORE_NNACL_FP16_POOLING_FP16_H_ #include #ifdef ENABLE_NEON @@ -33,4 +33,4 @@ void MaxPoolingFp16(const float16_t *input_ptr, float16_t *output_ptr, PoolingPa #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_POOLING_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_POOLING_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/power_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/power_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/power_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/power_fp16.c diff --git a/mindspore/lite/nnacl/fp16/power_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/power_fp16.h similarity index 93% rename from mindspore/lite/nnacl/fp16/power_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/power_fp16.h index 32663f809f0..8a5ad96fb02 100644 --- a/mindspore/lite/nnacl/fp16/power_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/power_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_POWER_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_POWER_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_POWER_FP16_H_ +#define MINDSPORE_NNACL_FP16_POWER_FP16_H_ #include #include "nnacl/op_base.h" @@ -60,4 +60,4 @@ void PowerBroadCastFp16(const float16_t *input, const float16_t *exponent, float } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_POWER_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_POWER_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/quant_dtype_cast_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/quant_dtype_cast_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/quant_dtype_cast_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/quant_dtype_cast_fp16.c diff --git a/mindspore/lite/nnacl/fp16/quant_dtype_cast_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/quant_dtype_cast_fp16.h similarity index 87% rename from mindspore/lite/nnacl/fp16/quant_dtype_cast_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/quant_dtype_cast_fp16.h index 9019bf565f4..a92025d5c1a 100644 --- a/mindspore/lite/nnacl/fp16/quant_dtype_cast_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/quant_dtype_cast_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_QUANTDTYPECAST_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_QUANTDTYPECAST_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_QUANTDTYPECAST_FP16_H_ +#define MINDSPORE_NNACL_FP16_QUANTDTYPECAST_FP16_H_ #include "nnacl/op_base.h" @@ -35,4 +35,4 @@ int DoQuantizeFp16ToUInt8(float16_t *real_values, uint8_t *quant_values, float s } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_QUANTDTYPECAST_H_ +#endif // MINDSPORE_NNACL_INT8_QUANTDTYPECAST_H_ diff --git a/mindspore/lite/nnacl/fp16/reduce_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/reduce_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/reduce_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/reduce_fp16.c diff --git a/mindspore/lite/nnacl/fp16/reduce_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/reduce_fp16.h similarity index 88% rename from mindspore/lite/nnacl/fp16/reduce_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/reduce_fp16.h index b6349c877ea..442b1c1b64c 100644 --- a/mindspore/lite/nnacl/fp16/reduce_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/reduce_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_REDUCE_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_REDUCE_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_REDUCE_FP16_H_ +#define MINDSPORE_NNACL_FP16_REDUCE_FP16_H_ #include "nnacl/op_base.h" #include "nnacl/reduce_parameter.h" @@ -33,4 +33,4 @@ int ReduceMaxFp16(int outer_size, int inner_size, int axis_size, const float16_t } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_REDUCE_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_REDUCE_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/scale_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.c similarity index 97% rename from mindspore/lite/nnacl/fp16/scale_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.c index 94d5560c2aa..aea928149da 100644 --- a/mindspore/lite/nnacl/fp16/scale_fp16.c +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.c @@ -29,9 +29,9 @@ void Fp16ScaleInner(float16_t *in_data, float16_t *out_data, float16_t *scale, f float16x8_t data = vld1q_f16(in_data + in_offset); float16x8_t scale_8 = vdupq_n_f16(scale[i]); float16x8_t offset_8 = vdupq_n_f16(offset[i]); - float16x8_t reslut = vfmaq_f16(offset_8, data, scale_8); + float16x8_t result = vfmaq_f16(offset_8, data, scale_8); - vst1q_f16(out_data + in_offset, reslut); + vst1q_f16(out_data + in_offset, result); } #endif for (; in_index < inner_size; in_index++) { @@ -53,8 +53,8 @@ void Fp16ScaleAxis(float16_t *in_data, float16_t *out_data, float16_t *scale, fl float16x8_t data = vld1q_f16(in_data + in_offset); float16x8_t scale_8 = vld1q_f16(scale + index); float16x8_t offset_8 = vld1q_f16(offset + index); - float16x8_t reslut = vfmaq_f16(offset_8, data, scale_8); - vst1q_f16(out_data + in_offset, reslut); + float16x8_t result = vfmaq_f16(offset_8, data, scale_8); + vst1q_f16(out_data + in_offset, result); } #endif for (; index < axis_size; index++) { diff --git a/mindspore/lite/nnacl/fp16/scale_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.h similarity index 90% rename from mindspore/lite/nnacl/fp16/scale_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.h index 6a391c495b4..81da793d6bc 100644 --- a/mindspore/lite/nnacl/fp16/scale_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/scale_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SCALE_FP16_H_ -#define MINDSPORE_LITE_NNACL_SCALE_FP16_H_ +#ifndef MINDSPORE_NNACL_SCALE_FP16_H_ +#define MINDSPORE_NNACL_SCALE_FP16_H_ #include "nnacl/op_base.h" #include "nnacl/scale.h" @@ -35,4 +35,4 @@ void DoScaleRelu6Fp16(float16_t *in_data, float16_t *out_data, float16_t *scale, } #endif -#endif // MINDSPORE_LITE_NNACL_SCALE_FP16_H_ +#endif // MINDSPORE_NNACL_SCALE_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/softmax_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/softmax_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/softmax_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/softmax_fp16.c diff --git a/mindspore/lite/nnacl/fp16/softmax_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/softmax_fp16.h similarity index 87% rename from mindspore/lite/nnacl/fp16/softmax_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/softmax_fp16.h index 2c2b575d927..cdd6ead438b 100644 --- a/mindspore/lite/nnacl/fp16/softmax_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/softmax_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_SOFTMAX_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_SOFTMAX_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_SOFTMAX_FP16_H_ +#define MINDSPORE_NNACL_FP16_SOFTMAX_FP16_H_ #include "nnacl/op_base.h" #include "nnacl/softmax_parameter.h" @@ -32,4 +32,4 @@ void SoftmaxLastAxisFp16(const float16_t *src, float16_t *dst, int batch, int ch } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_SOFTMAX_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_SOFTMAX_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/transpose_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/transpose_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/transpose_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/transpose_fp16.c diff --git a/mindspore/lite/nnacl/fp16/transpose_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/transpose_fp16.h similarity index 85% rename from mindspore/lite/nnacl/fp16/transpose_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/transpose_fp16.h index aa7b21b63f3..9c300df2de7 100644 --- a/mindspore/lite/nnacl/fp16/transpose_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/transpose_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_TRANSPOSE_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_TRANSPOSE_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_TRANSPOSE_FP16_H_ +#define MINDSPORE_NNACL_FP16_TRANSPOSE_FP16_H_ #include "nnacl/op_base.h" #include "nnacl/transpose.h" @@ -32,4 +32,4 @@ int Fp16DoTranspose(const float16_t *in_data, float16_t *out_data, const int *ou } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_TRANSPOSE_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_TRANSPOSE_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/winograd_transform_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/winograd_transform_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.c diff --git a/mindspore/lite/nnacl/fp16/winograd_transform_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.h similarity index 93% rename from mindspore/lite/nnacl/fp16/winograd_transform_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.h index 42d997a3cc7..863248950e8 100644 --- a/mindspore/lite/nnacl/fp16/winograd_transform_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ -#define MINDSPORE_LITE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ +#ifndef MINDSPORE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ +#define MINDSPORE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ #include #include @@ -60,4 +60,4 @@ int WinogradWeightTransformFp16(const float16_t *weight_data, float16_t *winogra } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ +#endif // MINDSPORE_NNACL_FP16_WINOGRAD_TRANSFORM_FP16_H_ diff --git a/mindspore/lite/nnacl/fp16/winograd_utils_fp16.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c similarity index 100% rename from mindspore/lite/nnacl/fp16/winograd_utils_fp16.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c diff --git a/mindspore/lite/nnacl/fp16/winograd_utils_fp16.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.h similarity index 99% rename from mindspore/lite/nnacl/fp16/winograd_utils_fp16.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.h index 623e1c91203..72a4b709a09 100644 --- a/mindspore/lite/nnacl/fp16/winograd_utils_fp16.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_WINOGRAD_UTILS_H_ -#define MINDSPORE_LITE_NNACL_FP16_WINOGRAD_UTILS_H_ +#ifndef MINDSPORE_NNACL_FP16_WINOGRAD_UTILS_H_ +#define MINDSPORE_NNACL_FP16_WINOGRAD_UTILS_H_ #include #include "nnacl/conv_parameter.h" @@ -499,4 +499,4 @@ void CheckIfUseWinogradFp16(bool *use_winograd, int *output_unit, ConvParameter } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_WINOGRAD_UTILS_H_ +#endif // MINDSPORE_NNACL_FP16_WINOGRAD_UTILS_H_ diff --git a/mindspore/lite/nnacl/fp16_grad/activation_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/activation_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp16_grad/activation_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/activation_grad.c diff --git a/mindspore/lite/nnacl/fp16_grad/activation_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/activation_grad.h similarity index 86% rename from mindspore/lite/nnacl/fp16_grad/activation_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/activation_grad.h index 79c53584b73..36d3e8d333c 100644 --- a/mindspore/lite/nnacl/fp16_grad/activation_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/activation_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ +#define MINDSPORE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ #ifdef ENABLE_NEON #include @@ -39,4 +39,4 @@ int Fp16SigmoidGrad(const float16_t *src0, const float16_t *src1, size_t length, } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ +#endif // MINDSPORE_NNACL_FP16_GRAD_ACTIVATION_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp16_grad/arithmetic_self_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/arithmetic_self_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp16_grad/arithmetic_self_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/arithmetic_self_grad.c diff --git a/mindspore/lite/nnacl/fp16_grad/arithmetic_self_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/arithmetic_self_grad.h similarity index 83% rename from mindspore/lite/nnacl/fp16_grad/arithmetic_self_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/arithmetic_self_grad.h index 3d894581ac1..9a99ade802d 100644 --- a/mindspore/lite/nnacl/fp16_grad/arithmetic_self_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/arithmetic_self_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ +#define MINDSPORE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ #ifdef ENABLE_NEON #include @@ -36,4 +36,4 @@ int Fp16LogGrad(const float16_t *src0, const float16_t *src1, size_t length, flo } #endif -#endif // MINDSPORE_LITE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ +#endif // MINDSPORE_NNACL_FP16_GRAD_ARITHMETHIC_SELF_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32/activation_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/activation_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/activation_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/activation_fp32.c diff --git a/mindspore/lite/nnacl/fp32/activation_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/activation_fp32.h similarity index 91% rename from mindspore/lite/nnacl/fp32/activation_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/activation_fp32.h index 1f741c50b5b..3a3b4183d3c 100644 --- a/mindspore/lite/nnacl/fp32/activation_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/activation_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ACTIVATION_H_ -#define MINDSPORE_LITE_NNACL_FP32_ACTIVATION_H_ +#ifndef MINDSPORE_NNACL_FP32_ACTIVATION_H_ +#define MINDSPORE_NNACL_FP32_ACTIVATION_H_ #include #include "nnacl/op_base.h" @@ -46,4 +46,4 @@ float TanhOpt(float src); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ACTIVATION_H_ +#endif // MINDSPORE_NNACL_FP32_ACTIVATION_H_ diff --git a/mindspore/lite/nnacl/fp32/add_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/add_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/add_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/add_fp32.c diff --git a/mindspore/lite/nnacl/fp32/add_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/add_fp32.h similarity index 93% rename from mindspore/lite/nnacl/fp32/add_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/add_fp32.h index 4344f33175b..f5d44a30d1c 100644 --- a/mindspore/lite/nnacl/fp32/add_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/add_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ADD_H_ -#define MINDSPORE_LITE_NNACL_FP32_ADD_H_ +#ifndef MINDSPORE_NNACL_FP32_ADD_H_ +#define MINDSPORE_NNACL_FP32_ADD_H_ #ifdef ENABLE_NEON #include @@ -42,4 +42,4 @@ int BroadcastAdd(const float *in0, const float *in1, float *tile_in0, float *til } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ADD_H_ +#endif // MINDSPORE_NNACL_FP32_ADD_H_ diff --git a/mindspore/lite/nnacl/fp32/adder_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/adder_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/adder_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/adder_fp32.c diff --git a/mindspore/lite/nnacl/fp32/adder_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/adder_fp32.h similarity index 91% rename from mindspore/lite/nnacl/fp32/adder_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/adder_fp32.h index fd3956ac085..3908102a833 100644 --- a/mindspore/lite/nnacl/fp32/adder_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/adder_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ADDER_H_ -#define MINDSPORE_LITE_NNACL_FP32_ADDER_H_ +#ifndef MINDSPORE_NNACL_FP32_ADDER_H_ +#define MINDSPORE_NNACL_FP32_ADDER_H_ #ifdef ENABLE_NEON #include @@ -44,4 +44,4 @@ void AdderFp32(const float *input_data, float *packed_input, const float *packed } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ADDER_H_ +#endif // MINDSPORE_NNACL_FP32_ADDER_H_ diff --git a/mindspore/lite/nnacl/fp32/arg_min_max_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arg_min_max_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/arg_min_max_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arg_min_max_fp32.c diff --git a/mindspore/lite/nnacl/fp32/arg_min_max_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arg_min_max_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/arg_min_max_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arg_min_max_fp32.h index 509e85203f3..1cb61a8457d 100644 --- a/mindspore/lite/nnacl/fp32/arg_min_max_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arg_min_max_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ARG_MIN_MAX_H_ -#define MINDSPORE_LITE_NNACL_FP32_ARG_MIN_MAX_H_ +#ifndef MINDSPORE_NNACL_FP32_ARG_MIN_MAX_H_ +#define MINDSPORE_NNACL_FP32_ARG_MIN_MAX_H_ #include "nnacl/nnacl_common.h" #include "nnacl/arg_min_max_parameter.h" @@ -28,4 +28,4 @@ void ArgMinMaxFp32(const float *input, void *output, float *output_value, const } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ARG_MIN_MAX_H_ +#endif // MINDSPORE_NNACL_FP32_ARG_MIN_MAX_H_ diff --git a/mindspore/lite/nnacl/fp32/arithmetic_compare_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_compare_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/arithmetic_compare_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_compare_fp32.c diff --git a/mindspore/lite/nnacl/fp32/arithmetic_compare_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_compare_fp32.h similarity index 92% rename from mindspore/lite/nnacl/fp32/arithmetic_compare_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_compare_fp32.h index 5f0ed2d58b6..61874686cd1 100644 --- a/mindspore/lite/nnacl/fp32/arithmetic_compare_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_compare_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_H_ -#define MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_H_ +#ifndef MINDSPORE_NNACL_ARITHMETIC_COMPARE_H_ +#define MINDSPORE_NNACL_ARITHMETIC_COMPARE_H_ #ifdef ENABLE_NEON #include @@ -47,4 +47,4 @@ int ElementGreaterEqualInt32(const int32_t *input0, const int32_t *input1, uint8 } #endif -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_H_ +#endif // MINDSPORE_NNACL_ARITHMETIC_COMPARE_H_ diff --git a/mindspore/lite/nnacl/fp32/arithmetic_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/arithmetic_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_fp32.c diff --git a/mindspore/lite/nnacl/fp32/arithmetic_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_fp32.h similarity index 95% rename from mindspore/lite/nnacl/fp32/arithmetic_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_fp32.h index b329bf69084..9b1c64b6ad8 100644 --- a/mindspore/lite/nnacl/fp32/arithmetic_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_H_ -#define MINDSPORE_LITE_NNACL_ARITHMETIC_H_ +#ifndef MINDSPORE_NNACL_ARITHMETIC_H_ +#define MINDSPORE_NNACL_ARITHMETIC_H_ #ifdef ENABLE_NEON #include @@ -68,4 +68,4 @@ int ElementOptModInt(const int *in0, const int *in1, int *out, int size, const A } #endif -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_H_ +#endif // MINDSPORE_NNACL_ARITHMETIC_H_ diff --git a/mindspore/lite/nnacl/fp32/arithmetic_self_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_self_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/arithmetic_self_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_self_fp32.c diff --git a/mindspore/lite/nnacl/fp32/arithmetic_self_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_self_fp32.h similarity index 93% rename from mindspore/lite/nnacl/fp32/arithmetic_self_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_self_fp32.h index aefd434d6f9..5ab6a86de5d 100644 --- a/mindspore/lite/nnacl/fp32/arithmetic_self_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/arithmetic_self_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_H_ -#define MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_H_ +#ifndef MINDSPORE_NNACL_ARITHMETIC_SELF_H_ +#define MINDSPORE_NNACL_ARITHMETIC_SELF_H_ #ifdef ENABLE_NEON #include @@ -59,4 +59,4 @@ int ElementErf(const float *input, float *output, const int element_size); } #endif -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_SELF_H_ +#endif // MINDSPORE_NNACL_ARITHMETIC_SELF_H_ diff --git a/mindspore/lite/nnacl/fp32/batchnorm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/batchnorm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/batchnorm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/batchnorm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/batchnorm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/batchnorm_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/batchnorm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/batchnorm_fp32.h index 043c7c1335b..ba8fecba394 100644 --- a/mindspore/lite/nnacl/fp32/batchnorm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/batchnorm_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_BATCHNORM_H_ -#define MINDSPORE_LITE_NNACL_FP32_BATCHNORM_H_ +#ifndef MINDSPORE_NNACL_FP32_BATCHNORM_H_ +#define MINDSPORE_NNACL_FP32_BATCHNORM_H_ #include "nnacl/batchnorm_parameter.h" @@ -34,4 +34,4 @@ void FusedBatchNormFp32MeanVar(const float *input, float *run_mean, float *run_v } #endif -#endif // MINDSPORE_LITE_NNACL_FUSED_BATCHNORM_H_ +#endif // MINDSPORE_NNACL_FUSED_BATCHNORM_H_ diff --git a/mindspore/lite/nnacl/fp32/broadcast_to_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/broadcast_to_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/broadcast_to_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/broadcast_to_fp32.c diff --git a/mindspore/lite/nnacl/fp32/broadcast_to_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/broadcast_to_fp32.h similarity index 83% rename from mindspore/lite/nnacl/fp32/broadcast_to_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/broadcast_to_fp32.h index 5c354be667d..e59c0158c9d 100644 --- a/mindspore/lite/nnacl/fp32/broadcast_to_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/broadcast_to_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_BROADCAST_TO_FP32_H_ +#define MINDSPORE_NNACL_FP32_BROADCAST_TO_FP32_H_ #include "nnacl/op_base.h" #include "nnacl/broadcast_to_parameter.h" @@ -27,4 +27,4 @@ int BroadcastTo(const float *input, BroadcastShapeInfo *shape_info, float *outpu } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_BROADCAST_TO_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_BROADCAST_TO_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/common_func_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/common_func_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/common_func_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/common_func_fp32.c diff --git a/mindspore/lite/nnacl/fp32/common_func_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/common_func_fp32.h similarity index 97% rename from mindspore/lite/nnacl/fp32/common_func_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/common_func_fp32.h index fc6f75ebe9a..649850dcdb2 100644 --- a/mindspore/lite/nnacl/fp32/common_func_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/common_func_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_COMMON_FUNC_H_ -#define MINDSPORE_LITE_NNACL_FP32_COMMON_FUNC_H_ +#ifndef MINDSPORE_NNACL_FP32_COMMON_FUNC_H_ +#define MINDSPORE_NNACL_FP32_COMMON_FUNC_H_ #include #include "nnacl/op_base.h" @@ -102,4 +102,4 @@ void ConvDw3x3Horizontal(float *dst, const float *src, const float *weight, cons #ifdef __cplusplus } #endif -#endif /* MINDSPORE_LITE_NNACL_FP32_COMMON_FUNC_H_ */ +#endif /* MINDSPORE_NNACL_FP32_COMMON_FUNC_H_ */ diff --git a/mindspore/lite/nnacl/fp32/constant_of_shape_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/constant_of_shape_fp32.h similarity index 86% rename from mindspore/lite/nnacl/fp32/constant_of_shape_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/constant_of_shape_fp32.h index 672d30a5e5b..6c607cf5039 100644 --- a/mindspore/lite/nnacl/fp32/constant_of_shape_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/constant_of_shape_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ +#define MINDSPORE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ #include #include #include "nnacl/op_base.h" @@ -42,4 +42,4 @@ inline int ConstantOfShapeFp32(float *output, int start, int end, float value) { } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_CONSTANT_OF_SHAPE_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/conv_common_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/conv_common_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c diff --git a/mindspore/lite/nnacl/fp32/conv_common_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/conv_common_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.h index fe5bb1b9d15..c1cec8c9592 100644 --- a/mindspore/lite/nnacl/fp32/conv_common_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CONV_COMMON_H_ -#define MINDSPORE_LITE_NNACL_FP32_CONV_COMMON_H_ +#ifndef MINDSPORE_NNACL_FP32_CONV_COMMON_H_ +#define MINDSPORE_NNACL_FP32_CONV_COMMON_H_ #ifdef ENABLE_NEON #include @@ -37,4 +37,4 @@ void ConvFp32(const float *input_data, float *packed_input, const float *packed_ } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CONV_COMMON_H_ +#endif // MINDSPORE_NNACL_FP32_CONV_COMMON_H_ diff --git a/mindspore/lite/nnacl/fp32/conv_depthwise_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/conv_depthwise_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.c diff --git a/mindspore/lite/nnacl/fp32/conv_depthwise_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.h similarity index 96% rename from mindspore/lite/nnacl/fp32/conv_depthwise_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.h index 26ba01e895c..5a8024805b7 100644 --- a/mindspore/lite/nnacl/fp32/conv_depthwise_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CONV_DEPTHWISE_H_ -#define MINDSPORE_LITE_NNACL_FP32_CONV_DEPTHWISE_H_ +#ifndef MINDSPORE_NNACL_FP32_CONV_DEPTHWISE_H_ +#define MINDSPORE_NNACL_FP32_CONV_DEPTHWISE_H_ #include "nnacl/conv_parameter.h" @@ -88,4 +88,4 @@ void DeconvDwSWFp32(float *output_data, const float *input_data, const float *we } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CONV_DEPTHWISE_H_ +#endif // MINDSPORE_NNACL_FP32_CONV_DEPTHWISE_H_ diff --git a/mindspore/lite/nnacl/fp32/conv_winograd_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_winograd_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/conv_winograd_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_winograd_fp32.c diff --git a/mindspore/lite/nnacl/fp32/conv_winograd_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_winograd_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/conv_winograd_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_winograd_fp32.h index c4cee273f0d..2b84d3e77ad 100644 --- a/mindspore/lite/nnacl/fp32/conv_winograd_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_winograd_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CONV_WINOGRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_CONV_WINOGRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_CONV_WINOGRAD_H_ +#define MINDSPORE_NNACL_FP32_CONV_WINOGRAD_H_ #ifdef ENABLE_NEON #include @@ -41,4 +41,4 @@ void ConvWinogardFp32(const float *input_data, const float *trans_weight, const } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CONV_WINOGRAD_H_ +#endif // MINDSPORE_NNACL_FP32_CONV_WINOGRAD_H_ diff --git a/mindspore/lite/nnacl/fp32/crop_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/crop_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/crop_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/crop_fp32.c diff --git a/mindspore/lite/nnacl/fp32/crop_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/crop_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/crop_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/crop_fp32.h index 793c7ab8d8f..816ea7899a1 100644 --- a/mindspore/lite/nnacl/fp32/crop_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/crop_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_CROP_H_ -#define MINDSPORE_LITE_NNACL_FP32_CROP_H_ +#ifndef MINDSPORE_NNACL_FP32_CROP_H_ +#define MINDSPORE_NNACL_FP32_CROP_H_ #include "nnacl/op_base.h" #include "nnacl/crop_parameter.h" @@ -31,4 +31,4 @@ void Crop4DNoParallel(const float *input, float *output, const int *in_shape, co } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_CROP_H_ +#endif // MINDSPORE_NNACL_FP32_CROP_H_ diff --git a/mindspore/lite/nnacl/fp32/deconv_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/deconv_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_fp32.c diff --git a/mindspore/lite/nnacl/fp32/deconv_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/deconv_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_fp32.h index 2cd7ea3b02f..06ba80c1491 100644 --- a/mindspore/lite/nnacl/fp32/deconv_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_DECONV_H_ -#define MINDSPORE_LITE_NNACL_FP32_DECONV_H_ +#ifndef MINDSPORE_NNACL_FP32_DECONV_H_ +#define MINDSPORE_NNACL_FP32_DECONV_H_ #include #include "nnacl/pack.h" @@ -34,4 +34,4 @@ void DeConvPostFp32C8(const float *src, float *tmp_out, const float *bias, float } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_DECONV_H_ +#endif // MINDSPORE_NNACL_FP32_DECONV_H_ diff --git a/mindspore/lite/nnacl/fp32/deconv_winograd_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_winograd_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/deconv_winograd_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_winograd_fp32.c diff --git a/mindspore/lite/nnacl/fp32/deconv_winograd_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_winograd_fp32.h similarity index 90% rename from mindspore/lite/nnacl/fp32/deconv_winograd_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_winograd_fp32.h index a2056dd36da..31f7be517e9 100644 --- a/mindspore/lite/nnacl/fp32/deconv_winograd_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/deconv_winograd_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_DECONV_WINOGRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_DECONV_WINOGRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_DECONV_WINOGRAD_H_ +#define MINDSPORE_NNACL_FP32_DECONV_WINOGRAD_H_ #include #include "nnacl/pack.h" @@ -40,4 +40,4 @@ void TiledC4MatmulFp32(float *dst, const float *src, const float *weight, size_t } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_DECONV_WINOGRAD_H_ +#endif // MINDSPORE_NNACL_FP32_DECONV_WINOGRAD_H_ diff --git a/mindspore/lite/nnacl/fp32/detection_post_process_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/detection_post_process_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/detection_post_process_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/detection_post_process_fp32.c diff --git a/mindspore/lite/nnacl/fp32/detection_post_process_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/detection_post_process_fp32.h similarity index 91% rename from mindspore/lite/nnacl/fp32/detection_post_process_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/detection_post_process_fp32.h index 60b1b0a4697..56442dc87f6 100644 --- a/mindspore/lite/nnacl/fp32/detection_post_process_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/detection_post_process_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_DETECTION_POST_PROCESS_H_ -#define MINDSPORE_LITE_NNACL_FP32_DETECTION_POST_PROCESS_H_ +#ifndef MINDSPORE_NNACL_FP32_DETECTION_POST_PROCESS_H_ +#define MINDSPORE_NNACL_FP32_DETECTION_POST_PROCESS_H_ #include "nnacl/op_base.h" #include "nnacl/detection_post_process_parameter.h" @@ -56,4 +56,4 @@ int DetectionPostProcessRegular(const int num_boxes, const int num_classes_with_ } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_DETECTION_POST_PROCESS_H_ +#endif // MINDSPORE_NNACL_FP32_DETECTION_POST_PROCESS_H_ diff --git a/mindspore/lite/nnacl/fp32/div_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/div_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/div_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/div_fp32.c diff --git a/mindspore/lite/nnacl/fp32/div_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/div_fp32.h similarity index 92% rename from mindspore/lite/nnacl/fp32/div_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/div_fp32.h index 755d678d550..a74c1cf859b 100644 --- a/mindspore/lite/nnacl/fp32/div_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/div_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_DIV_H_ -#define MINDSPORE_LITE_NNACL_FP32_DIV_H_ +#ifndef MINDSPORE_NNACL_FP32_DIV_H_ +#define MINDSPORE_NNACL_FP32_DIV_H_ #ifdef ENABLE_NEON #include @@ -40,4 +40,4 @@ int BroadcastDiv(const float *in0, const float *in1, float *tile_in0, float *til } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_DIV_H_ +#endif // MINDSPORE_NNACL_FP32_DIV_H_ diff --git a/mindspore/lite/nnacl/fp32/elu_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/elu_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/elu_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/elu_fp32.c diff --git a/mindspore/lite/nnacl/fp32/elu_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/elu_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/elu_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/elu_fp32.h index 2881aefa0c0..c26f8f50293 100644 --- a/mindspore/lite/nnacl/fp32/elu_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/elu_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ELU_H_ -#define MINDSPORE_LITE_NNACL_FP32_ELU_H_ +#ifndef MINDSPORE_NNACL_FP32_ELU_H_ +#define MINDSPORE_NNACL_FP32_ELU_H_ #include "nnacl/op_base.h" @@ -36,4 +36,4 @@ int Elu(const float *input_data, float *output_data, const EluParameter *paramet } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ELU_H_ +#endif // MINDSPORE_NNACL_FP32_ELU_H_ diff --git a/mindspore/lite/nnacl/fp32/embedding_lookup_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/embedding_lookup_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/embedding_lookup_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/embedding_lookup_fp32.c diff --git a/mindspore/lite/nnacl/fp32/embedding_lookup_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/embedding_lookup_fp32.h similarity index 86% rename from mindspore/lite/nnacl/fp32/embedding_lookup_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/embedding_lookup_fp32.h index a6e655d8411..40b3b4c7d76 100644 --- a/mindspore/lite/nnacl/fp32/embedding_lookup_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/embedding_lookup_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_EMBEDDING_LOOKUP_H_ -#define MINDSPORE_LITE_NNACL_FP32_EMBEDDING_LOOKUP_H_ +#ifndef MINDSPORE_NNACL_FP32_EMBEDDING_LOOKUP_H_ +#define MINDSPORE_NNACL_FP32_EMBEDDING_LOOKUP_H_ #include "nnacl/op_base.h" @@ -40,4 +40,4 @@ int EmbeddingLookup(float *input_data, const int *ids, float *output_data, const } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_EMBEDDING_LOOKUP_H_ +#endif // MINDSPORE_NNACL_FP32_EMBEDDING_LOOKUP_H_ diff --git a/mindspore/lite/nnacl/fp32/exp_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/exp_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/exp_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/exp_fp32.c diff --git a/mindspore/lite/nnacl/fp32/exp_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/exp_fp32.h similarity index 97% rename from mindspore/lite/nnacl/fp32/exp_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/exp_fp32.h index 061a4d8a574..b90056e466c 100644 --- a/mindspore/lite/nnacl/fp32/exp_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/exp_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_EXP_H_ -#define MINDSPORE_LITE_NNACL_FP32_EXP_H_ +#ifndef MINDSPORE_NNACL_FP32_EXP_H_ +#define MINDSPORE_NNACL_FP32_EXP_H_ #include "nnacl/op_base.h" @@ -100,4 +100,4 @@ static inline void single_exp(float src, float *dst) { } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_EXP_H_ +#endif // MINDSPORE_NNACL_FP32_EXP_H_ diff --git a/mindspore/lite/nnacl/fp32/gatherNd_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gatherNd_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/gatherNd_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gatherNd_fp32.c diff --git a/mindspore/lite/nnacl/fp32/gatherNd_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gatherNd_fp32.h similarity index 87% rename from mindspore/lite/nnacl/fp32/gatherNd_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gatherNd_fp32.h index ec4f4c4da3f..1c165ea0ba2 100644 --- a/mindspore/lite/nnacl/fp32/gatherNd_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gatherNd_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GATHERND_H_ -#define MINDSPORE_LITE_NNACL_GATHERND_H_ +#ifndef MINDSPORE_NNACL_GATHERND_H_ +#define MINDSPORE_NNACL_GATHERND_H_ #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ int GatherNd(const float *input, float *output, const int *in_offset, int area, } #endif -#endif // MINDSPORE_LITE_NNACL_GATHERND_H_ +#endif // MINDSPORE_NNACL_GATHERND_H_ diff --git a/mindspore/lite/nnacl/fp32/gru_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gru_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/gru_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gru_fp32.c diff --git a/mindspore/lite/nnacl/fp32/gru_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gru_fp32.h similarity index 87% rename from mindspore/lite/nnacl/fp32/gru_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gru_fp32.h index 3333eafd9cf..7beb77ed299 100644 --- a/mindspore/lite/nnacl/fp32/gru_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/gru_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRU_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRU_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_GRU_FP32_H_ +#define MINDSPORE_NNACL_FP32_GRU_FP32_H_ #include "nnacl/gru_parameter.h" #ifdef __cplusplus @@ -27,4 +27,4 @@ void Gru(float *output, const float *input, const float *weight_g, const float * } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRU_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_GRU_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/instance_norm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/instance_norm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/instance_norm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/instance_norm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/instance_norm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/instance_norm_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/instance_norm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/instance_norm_fp32.h index b00b7491f90..b0bf3bf64cc 100644 --- a/mindspore/lite/nnacl/fp32/instance_norm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/instance_norm_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_INSTANCE_NORM_H_ -#define MINDSPORE_LITE_NNACL_FP32_INSTANCE_NORM_H_ +#ifndef MINDSPORE_NNACL_FP32_INSTANCE_NORM_H_ +#define MINDSPORE_NNACL_FP32_INSTANCE_NORM_H_ #include "nnacl/op_base.h" #include "nnacl/instance_norm_parameter.h" @@ -29,4 +29,4 @@ int InstanceNorm(const float *src_data, float *dst_data, const float *gamma_data } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_INSTANCE_NORM_H_ +#endif // MINDSPORE_NNACL_FP32_INSTANCE_NORM_H_ diff --git a/mindspore/lite/nnacl/fp32/invert_permutation_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/invert_permutation_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/invert_permutation_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/invert_permutation_fp32.c diff --git a/mindspore/lite/nnacl/fp32/invert_permutation_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/invert_permutation_fp32.h similarity index 81% rename from mindspore/lite/nnacl/fp32/invert_permutation_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/invert_permutation_fp32.h index 7151cdfddce..dc44b14704d 100644 --- a/mindspore/lite/nnacl/fp32/invert_permutation_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/invert_permutation_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_FP32_H_ -#define MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_FP32_H_ +#ifndef MINDSPORE_NNACL_INVERT_PERMUTATION_FP32_H_ +#define MINDSPORE_NNACL_INVERT_PERMUTATION_FP32_H_ #ifdef __cplusplus extern "C" { @@ -24,4 +24,4 @@ void InvertPermutation(const int *input, int *output, int num); } #endif -#endif // MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_FP32_H_ +#endif // MINDSPORE_NNACL_INVERT_PERMUTATION_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/l2_norm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/l2_norm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/l2_norm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/l2_norm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/l2_norm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/l2_norm_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/l2_norm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/l2_norm_fp32.h index 4771d382f11..efca13b717a 100644 --- a/mindspore/lite/nnacl/fp32/l2_norm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/l2_norm_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_L2NORM_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_L2NORM_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_L2NORM_FP32_H_ +#define MINDSPORE_NNACL_FP32_L2NORM_FP32_H_ #include "nnacl/l2_norm_parameter.h" @@ -31,4 +31,4 @@ int ThreadTrailingAxis(const float *input_ptr, float *output_ptr, const L2NormPa } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_L2NORM_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_L2NORM_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/layer_norm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/layer_norm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/layer_norm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/layer_norm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/layer_norm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/layer_norm_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/layer_norm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/layer_norm_fp32.h index 3849fa125b4..fcbdcf16ef6 100644 --- a/mindspore/lite/nnacl/fp32/layer_norm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/layer_norm_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_LAYER_NORM_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_LAYER_NORM_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_LAYER_NORM_FP32_H_ +#define MINDSPORE_NNACL_FP32_LAYER_NORM_FP32_H_ #include "nnacl/op_base.h" #include "nnacl/layer_norm_parameter.h" @@ -29,4 +29,4 @@ int LayerNorm(const float *src_data, const float *gamma_data, const float *beta_ } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_LAYER_NORM_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_LAYER_NORM_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/local_response_norm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/local_response_norm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/local_response_norm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/local_response_norm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/local_response_norm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/local_response_norm_fp32.h similarity index 86% rename from mindspore/lite/nnacl/fp32/local_response_norm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/local_response_norm_fp32.h index 57046bb32db..b610aabfdc9 100644 --- a/mindspore/lite/nnacl/fp32/local_response_norm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/local_response_norm_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LOCAL_RESPONSE_NORM_H_ -#define MINDSPORE_LITE_NNACL_LOCAL_RESPONSE_NORM_H_ +#ifndef MINDSPORE_NNACL_LOCAL_RESPONSE_NORM_H_ +#define MINDSPORE_NNACL_LOCAL_RESPONSE_NORM_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ int LocalResponseNorm(const float *input_ptr, int out_size, int channel, float * } #endif -#endif // MINDSPORE_LITE_NNACL_LOCAL_RESPONSE_NORM_H_ +#endif // MINDSPORE_NNACL_LOCAL_RESPONSE_NORM_H_ diff --git a/mindspore/lite/nnacl/fp32/log_softmax_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/log_softmax_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/log_softmax_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/log_softmax_fp32.c diff --git a/mindspore/lite/nnacl/fp32/log_softmax_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/log_softmax_fp32.h similarity index 100% rename from mindspore/lite/nnacl/fp32/log_softmax_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/log_softmax_fp32.h diff --git a/mindspore/lite/nnacl/fp32/lstm_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/lstm_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/lstm_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/lstm_fp32.c diff --git a/mindspore/lite/nnacl/fp32/lstm_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/lstm_fp32.h similarity index 92% rename from mindspore/lite/nnacl/fp32/lstm_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/lstm_fp32.h index 8a9d8276dc2..f1d88bd8b58 100644 --- a/mindspore/lite/nnacl/fp32/lstm_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/lstm_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_LSTM_H_ -#define MINDSPORE_LITE_NNACL_FP32_LSTM_H_ +#ifndef MINDSPORE_NNACL_FP32_LSTM_H_ +#define MINDSPORE_NNACL_FP32_LSTM_H_ #include "nnacl/lstm_parameter.h" #ifdef __cplusplus @@ -40,4 +40,4 @@ void Lstm(float *output, const float *input, const float *weight_i, const float } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_LSTM_H_ +#endif // MINDSPORE_NNACL_FP32_LSTM_H_ diff --git a/mindspore/lite/nnacl/fp32/matmul_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/matmul_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.c diff --git a/mindspore/lite/nnacl/fp32/matmul_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.h similarity index 96% rename from mindspore/lite/nnacl/fp32/matmul_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.h index 4a629eeadd3..b7bd1912ee3 100644 --- a/mindspore/lite/nnacl/fp32/matmul_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_MATMUL_H_ -#define MINDSPORE_LITE_NNACL_FP32_MATMUL_H_ +#ifndef MINDSPORE_NNACL_FP32_MATMUL_H_ +#define MINDSPORE_NNACL_FP32_MATMUL_H_ #include #include @@ -80,4 +80,4 @@ void MatmulFloatAvxOpt(const float *a, const float *b, float *c, const float *bi } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_MATMUL_H_ +#endif // MINDSPORE_NNACL_FP32_MATMUL_H_ diff --git a/mindspore/lite/nnacl/fp32/mul_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/mul_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/mul_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/mul_fp32.c diff --git a/mindspore/lite/nnacl/fp32/mul_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/mul_fp32.h similarity index 94% rename from mindspore/lite/nnacl/fp32/mul_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/mul_fp32.h index 0ff54a43c82..7a6a54c6055 100644 --- a/mindspore/lite/nnacl/fp32/mul_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/mul_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_MUL_H_ -#define MINDSPORE_LITE_NNACL_FP32_MUL_H_ +#ifndef MINDSPORE_NNACL_FP32_MUL_H_ +#define MINDSPORE_NNACL_FP32_MUL_H_ #ifdef ENABLE_NEON #include @@ -46,4 +46,4 @@ int BroadcastMul(const float *in0, const float *in1, float *tile_in0, float *til } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_MUL_H_ +#endif // MINDSPORE_NNACL_FP32_MUL_H_ diff --git a/mindspore/lite/nnacl/fp32/one_hot_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/one_hot_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/one_hot_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/one_hot_fp32.c diff --git a/mindspore/lite/nnacl/fp32/one_hot_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/one_hot_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/one_hot_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/one_hot_fp32.h index 7b2039bb089..5586c2c1d8e 100644 --- a/mindspore/lite/nnacl/fp32/one_hot_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/one_hot_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ONE_HOT_H_ -#define MINDSPORE_LITE_NNACL_FP32_ONE_HOT_H_ +#ifndef MINDSPORE_NNACL_FP32_ONE_HOT_H_ +#define MINDSPORE_NNACL_FP32_ONE_HOT_H_ #ifdef ENABLE_NEON #include @@ -44,4 +44,4 @@ int OneHot(const int *indices, float *output, const OneHotParameter *one_hot_par } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ONE_HOT_H_ +#endif // MINDSPORE_NNACL_FP32_ONE_HOT_H_ diff --git a/mindspore/lite/nnacl/fp32/pack_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pack_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/pack_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pack_fp32.c diff --git a/mindspore/lite/nnacl/fp32/pack_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pack_fp32.h similarity index 96% rename from mindspore/lite/nnacl/fp32/pack_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pack_fp32.h index 230f4eb9576..af43b80b08d 100644 --- a/mindspore/lite/nnacl/fp32/pack_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pack_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_PACK_H_ -#define MINDSPORE_LITE_NNACL_FP32_PACK_H_ +#ifndef MINDSPORE_NNACL_FP32_PACK_H_ +#define MINDSPORE_NNACL_FP32_PACK_H_ #ifdef ENABLE_NEON #include @@ -67,4 +67,4 @@ void Transpose8X8Fp32Sse(const float *src_ptr, float *dst_ptr, int src_stride, i } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_PAD_H_ +#endif // MINDSPORE_NNACL_FP32_PAD_H_ diff --git a/mindspore/lite/nnacl/fp32/pad_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pad_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/pad_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pad_fp32.c diff --git a/mindspore/lite/nnacl/fp32/pad_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pad_fp32.h similarity index 91% rename from mindspore/lite/nnacl/fp32/pad_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pad_fp32.h index db5876f51a8..d353477a1c0 100644 --- a/mindspore/lite/nnacl/fp32/pad_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pad_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_PAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_PAD_H_ +#ifndef MINDSPORE_NNACL_FP32_PAD_H_ +#define MINDSPORE_NNACL_FP32_PAD_H_ #ifdef ENABLE_NEON #include @@ -38,4 +38,4 @@ int GetInputFlattenIndex(int out_flatten_index, const int *input_shape, const Pa } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_PAD_H_ +#endif // MINDSPORE_NNACL_FP32_PAD_H_ diff --git a/mindspore/lite/nnacl/fp32/pooling_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/pooling_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.c diff --git a/mindspore/lite/nnacl/fp32/pooling_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/pooling_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.h index 71033e5072f..868afdbb803 100644 --- a/mindspore/lite/nnacl/fp32/pooling_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_POOLING_H_ -#define MINDSPORE_LITE_NNACL_FP32_POOLING_H_ +#ifndef MINDSPORE_NNACL_FP32_POOLING_H_ +#define MINDSPORE_NNACL_FP32_POOLING_H_ #ifdef ENABLE_NEON #include @@ -35,4 +35,4 @@ void MaxPooling(const float *input_ptr, float *output_ptr, const PoolingParamete } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_POOLING_H_ +#endif // MINDSPORE_NNACL_FP32_POOLING_H_ diff --git a/mindspore/lite/nnacl/fp32/power_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/power_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/power_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/power_fp32.c diff --git a/mindspore/lite/nnacl/fp32/power_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/power_fp32.h similarity index 92% rename from mindspore/lite/nnacl/fp32/power_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/power_fp32.h index 80e12e54ca2..928c3cd9de2 100644 --- a/mindspore/lite/nnacl/fp32/power_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/power_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_POWER_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_POWER_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_POWER_FP32_H_ +#define MINDSPORE_NNACL_FP32_POWER_FP32_H_ #include #include "nnacl/op_base.h" @@ -50,4 +50,4 @@ void PowerBroadCast(const float *input, const float *exponent, float *output, in } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_POWER_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_POWER_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/prelu_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prelu_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/prelu_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prelu_fp32.c diff --git a/mindspore/lite/nnacl/fp32/prelu_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prelu_fp32.h similarity index 87% rename from mindspore/lite/nnacl/fp32/prelu_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prelu_fp32.h index 1203b2e9a0d..9d6701e55f8 100644 --- a/mindspore/lite/nnacl/fp32/prelu_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prelu_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_PRELU_H_ -#define MINDSPORE_LITE_NNACL_FP32_PRELU_H_ +#ifndef MINDSPORE_NNACL_FP32_PRELU_H_ +#define MINDSPORE_NNACL_FP32_PRELU_H_ #include "nnacl/op_base.h" #include "nnacl/prelu_parameter.h" @@ -29,4 +29,4 @@ void PReluShareChannel(const float *input, float *output, float slope, int start } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_PRELU_H_ +#endif // MINDSPORE_NNACL_FP32_PRELU_H_ diff --git a/mindspore/lite/nnacl/fp32/prior_box_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prior_box_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/prior_box_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prior_box_fp32.h index d37ca65956b..43116a1f0e1 100644 --- a/mindspore/lite/nnacl/fp32/prior_box_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/prior_box_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_PRIOR_BOX_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_PRIOR_BOX_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_PRIOR_BOX_FP32_H_ +#define MINDSPORE_NNACL_FP32_PRIOR_BOX_FP32_H_ #include #include "nnacl/op_base.h" @@ -35,4 +35,4 @@ static int PriorBox(const float *input_data, float *output_data, const size_t si } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_PRIOR_BOX_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_PRIOR_BOX_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/range_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/range_fp32.h similarity index 91% rename from mindspore/lite/nnacl/fp32/range_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/range_fp32.h index dfa49af0bea..7cf8ba8a0c2 100644 --- a/mindspore/lite/nnacl/fp32/range_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/range_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RANGE_H_ -#define MINDSPORE_LITE_NNACL_RANGE_H_ +#ifndef MINDSPORE_NNACL_RANGE_H_ +#define MINDSPORE_NNACL_RANGE_H_ #include "nnacl/op_base.h" @@ -47,4 +47,4 @@ inline void RangeInt(int *output_ptr, int start, int delta, int nums) { } #endif -#endif // MINDSPORE_LITE_NNACL_RANGE_H_ +#endif // MINDSPORE_NNACL_RANGE_H_ diff --git a/mindspore/lite/nnacl/fp32/rank_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/rank_fp32.h similarity index 87% rename from mindspore/lite/nnacl/fp32/rank_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/rank_fp32.h index 7c132c43467..7740e045edd 100644 --- a/mindspore/lite/nnacl/fp32/rank_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/rank_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RANK_H_ -#define MINDSPORE_LITE_NNACL_RANK_H_ +#ifndef MINDSPORE_NNACL_RANK_H_ +#define MINDSPORE_NNACL_RANK_H_ #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ inline void Rank(float *output, int rank) { } #endif -#endif // MINDSPORE_LITE_NNACL_RANK_H_ +#endif // MINDSPORE_NNACL_RANK_H_ diff --git a/mindspore/lite/nnacl/fp32/reduce_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reduce_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/reduce_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reduce_fp32.c diff --git a/mindspore/lite/nnacl/fp32/reduce_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reduce_fp32.h similarity index 95% rename from mindspore/lite/nnacl/fp32/reduce_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reduce_fp32.h index 30901f06226..d772edf8b1d 100644 --- a/mindspore/lite/nnacl/fp32/reduce_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reduce_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_REDUCE_H_ -#define MINDSPORE_LITE_NNACL_FP32_REDUCE_H_ +#ifndef MINDSPORE_NNACL_FP32_REDUCE_H_ +#define MINDSPORE_NNACL_FP32_REDUCE_H_ #include "nnacl/op_base.h" #include "nnacl/reduce_parameter.h" @@ -55,4 +55,4 @@ int ReduceInferShape(int **in_shape, size_t *dim_size, int *out_shape, int *in_f } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_REDUCE_H_ +#endif // MINDSPORE_NNACL_FP32_REDUCE_H_ diff --git a/mindspore/lite/nnacl/fp32/resize_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/resize_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/resize_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/resize_fp32.c diff --git a/mindspore/lite/nnacl/fp32/resize_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/resize_fp32.h similarity index 96% rename from mindspore/lite/nnacl/fp32/resize_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/resize_fp32.h index 9a65712aeac..7c8d787c834 100644 --- a/mindspore/lite/nnacl/fp32/resize_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/resize_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_RESIZE_H_ -#define MINDSPORE_LITE_NNACL_FP32_RESIZE_H_ +#ifndef MINDSPORE_NNACL_FP32_RESIZE_H_ +#define MINDSPORE_NNACL_FP32_RESIZE_H_ #ifdef ENABLE_NEON #include @@ -66,4 +66,4 @@ float CalculateHalfPixel(int x_resized, int length_original, int length_resized) } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_RESIZE_H_ +#endif // MINDSPORE_NNACL_FP32_RESIZE_H_ diff --git a/mindspore/lite/nnacl/fp32/reverse_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/reverse_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_fp32.c diff --git a/mindspore/lite/nnacl/fp32/reverse_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/reverse_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_fp32.h index d8e58d17bd2..ccefb9bc198 100644 --- a/mindspore/lite/nnacl/fp32/reverse_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_REVERSE_H_ -#define MINDSPORE_LITE_NNACL_REVERSE_H_ +#ifndef MINDSPORE_NNACL_REVERSE_H_ +#define MINDSPORE_NNACL_REVERSE_H_ #ifdef ENABLE_NEON #include @@ -38,4 +38,4 @@ int Reverse(const float *input, float *output, size_t elem_size, int *index); } #endif -#endif // MINDSPORE_LITE_NNACL_REVERSE_H_ +#endif // MINDSPORE_NNACL_REVERSE_H_ diff --git a/mindspore/lite/nnacl/fp32/reverse_sequence_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_sequence_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/reverse_sequence_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_sequence_fp32.c diff --git a/mindspore/lite/nnacl/fp32/reverse_sequence_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_sequence_fp32.h similarity index 84% rename from mindspore/lite/nnacl/fp32/reverse_sequence_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_sequence_fp32.h index d0b18c39dd9..727659f787c 100644 --- a/mindspore/lite/nnacl/fp32/reverse_sequence_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/reverse_sequence_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_REVERSE_SEQUENCE_H_ -#define MINDSPORE_LITE_NNACL_FP32_REVERSE_SEQUENCE_H_ +#ifndef MINDSPORE_NNACL_FP32_REVERSE_SEQUENCE_H_ +#define MINDSPORE_NNACL_FP32_REVERSE_SEQUENCE_H_ #include #include "nnacl/common_func.h" @@ -30,4 +30,4 @@ void ReverseSequence(float *input0, const void *input1, float *output, ReverseSe } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_REVERSE_SEQUENCE_H_ +#endif // MINDSPORE_NNACL_FP32_REVERSE_SEQUENCE_H_ diff --git a/mindspore/lite/nnacl/fp32/roi_pooling_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/roi_pooling_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/roi_pooling_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/roi_pooling_fp32.c diff --git a/mindspore/lite/nnacl/fp32/roi_pooling_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/roi_pooling_fp32.h similarity index 89% rename from mindspore/lite/nnacl/fp32/roi_pooling_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/roi_pooling_fp32.h index 7e13f3d2180..d7d1c79e412 100644 --- a/mindspore/lite/nnacl/fp32/roi_pooling_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/roi_pooling_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_ROI_POOLING_H_ -#define MINDSPORE_LITE_NNACL_FP32_ROI_POOLING_H_ +#ifndef MINDSPORE_NNACL_FP32_ROI_POOLING_H_ +#define MINDSPORE_NNACL_FP32_ROI_POOLING_H_ #include "nnacl/op_base.h" @@ -51,4 +51,4 @@ int ROIPooling(const float *in_ptr, float *out_ptr, const float *roi, float *max } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_ROI_POOLING_H_ +#endif // MINDSPORE_NNACL_FP32_ROI_POOLING_H_ diff --git a/mindspore/lite/nnacl/fp32/scale_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scale_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/scale_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scale_fp32.c diff --git a/mindspore/lite/nnacl/fp32/scale_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scale_fp32.h similarity index 90% rename from mindspore/lite/nnacl/fp32/scale_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scale_fp32.h index bc1df65cb3b..952ded821aa 100644 --- a/mindspore/lite/nnacl/fp32/scale_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scale_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SCALE_FP32_H_ -#define MINDSPORE_LITE_NNACL_SCALE_FP32_H_ +#ifndef MINDSPORE_NNACL_SCALE_FP32_H_ +#define MINDSPORE_NNACL_SCALE_FP32_H_ #include "nnacl/op_base.h" #include "nnacl/scale.h" @@ -32,4 +32,4 @@ void DoScaleRelu6(const float *in_data, float *out_data, const float *scale, con } #endif -#endif // MINDSPORE_LITE_NNACL_SCALE_FP32_H_ +#endif // MINDSPORE_NNACL_SCALE_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/scatter_nd_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scatter_nd_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/scatter_nd_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scatter_nd_fp32.c diff --git a/mindspore/lite/nnacl/fp32/scatter_nd_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scatter_nd_fp32.h similarity index 83% rename from mindspore/lite/nnacl/fp32/scatter_nd_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scatter_nd_fp32.h index fcae3a8d310..626775fc5f9 100644 --- a/mindspore/lite/nnacl/fp32/scatter_nd_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/scatter_nd_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_SCATTER_ND_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_SCATTER_ND_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_SCATTER_ND_FP32_H_ +#define MINDSPORE_NNACL_FP32_SCATTER_ND_FP32_H_ #include "nnacl/op_base.h" @@ -27,4 +27,4 @@ int DoScatterND(float *output_ptr, const float *update, int *output_unit_offsets } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_SCATTER_ND_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_SCATTER_ND_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/softmax_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/softmax_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/softmax_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/softmax_fp32.c diff --git a/mindspore/lite/nnacl/fp32/softmax_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/softmax_fp32.h similarity index 87% rename from mindspore/lite/nnacl/fp32/softmax_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/softmax_fp32.h index f8ec5ffeb38..70424aed5fd 100644 --- a/mindspore/lite/nnacl/fp32/softmax_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/softmax_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_SOFTMAX_H_ -#define MINDSPORE_LITE_NNACL_FP32_SOFTMAX_H_ +#ifndef MINDSPORE_NNACL_FP32_SOFTMAX_H_ +#define MINDSPORE_NNACL_FP32_SOFTMAX_H_ #include "nnacl/op_base.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ void SoftmaxNorm(const float *src, float *dst, int batch, int channel); } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_SOFTMAX_H_ +#endif // MINDSPORE_NNACL_FP32_SOFTMAX_H_ diff --git a/mindspore/lite/nnacl/fp32/space_to_batch_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/space_to_batch_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.c diff --git a/mindspore/lite/nnacl/fp32/space_to_batch_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.h similarity index 100% rename from mindspore/lite/nnacl/fp32/space_to_batch_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/space_to_batch_fp32.h diff --git a/mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sparse_to_dense_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sparse_to_dense_fp32.c diff --git a/mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sparse_to_dense_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sparse_to_dense_fp32.h index 2be2695bc5b..1e8f9034131 100644 --- a/mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sparse_to_dense_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_SPARSETODENSE_H_ -#define MINDSPORE_LITE_NNACL_FP32_SPARSETODENSE_H_ +#ifndef MINDSPORE_NNACL_FP32_SPARSETODENSE_H_ +#define MINDSPORE_NNACL_FP32_SPARSETODENSE_H_ #include "nnacl/sparse_to_dense_parameter.h" @@ -27,4 +27,4 @@ void SparseToDense(int **sparse_indices_vect, const int *output_shape, const flo } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_SPARSETODENSE_H_ +#endif // MINDSPORE_NNACL_FP32_SPARSETODENSE_H_ diff --git a/mindspore/lite/nnacl/fp32/splice_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/splice_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/splice_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/splice_fp32.c diff --git a/mindspore/lite/nnacl/fp32/splice_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/splice_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/splice_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/splice_fp32.h index 42db661670b..9b21b41ac3b 100644 --- a/mindspore/lite/nnacl/fp32/splice_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/splice_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_SPLICE_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_SPLICE_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_SPLICE_FP32_H_ +#define MINDSPORE_NNACL_FP32_SPLICE_FP32_H_ #include #include "nnacl/splice_parameter.h" #ifdef __cplusplus @@ -28,4 +28,4 @@ void SpliceFp32(const float *src_data, int src_row, int src_col, const SplicePar #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_SPLICE_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_SPLICE_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/squared_difference.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.c similarity index 85% rename from mindspore/lite/nnacl/fp32/squared_difference.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.c index 03403290090..d842e1a956f 100644 --- a/mindspore/lite/nnacl/fp32/squared_difference.c +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.c @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ -#define MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ +#ifndef MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ +#define MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ #include "nnacl/fp32/squared_difference.h" #include "nnacl/fp32/sub_fp32.h" @@ -25,4 +25,4 @@ int ElementSquaredDifference(const float *in0, const float *in1, float *out, int return ElementMul(out, out, out, size); } -#endif // MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ +#endif // MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ diff --git a/mindspore/lite/nnacl/fp32/squared_difference.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.h similarity index 85% rename from mindspore/lite/nnacl/fp32/squared_difference.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.h index 71098b55253..69b5c22b8a2 100644 --- a/mindspore/lite/nnacl/fp32/squared_difference.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/squared_difference.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ -#define MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ +#ifndef MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ +#define MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ #ifdef ENABLE_NEON #include @@ -34,4 +34,4 @@ int ElementSquaredDifference(const float *in0, const float *in1, float *out, int } #endif -#endif // MINDSPORE_LITE_NNACL_SQUARED_DIFFERENCE_H_ +#endif // MINDSPORE_NNACL_SQUARED_DIFFERENCE_H_ diff --git a/mindspore/lite/nnacl/fp32/strided_slice_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/strided_slice_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/strided_slice_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/strided_slice_fp32.c diff --git a/mindspore/lite/nnacl/fp32/strided_slice_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/strided_slice_fp32.h similarity index 85% rename from mindspore/lite/nnacl/fp32/strided_slice_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/strided_slice_fp32.h index 12a0c31779c..d6e8a6fcbd2 100644 --- a/mindspore/lite/nnacl/fp32/strided_slice_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/strided_slice_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_STRIDED_SLICE_FP32_H_ -#define MINDSPORE_LITE_NNACL_FP32_STRIDED_SLICE_FP32_H_ +#ifndef MINDSPORE_NNACL_FP32_STRIDED_SLICE_FP32_H_ +#define MINDSPORE_NNACL_FP32_STRIDED_SLICE_FP32_H_ #include "nnacl/op_base.h" #include "nnacl/strided_slice_parameter.h" @@ -30,4 +30,4 @@ void FastStride(const uint8_t *input, uint8_t *output, int split_len, int stride } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_STRIDED_SLICE_FP32_H_ +#endif // MINDSPORE_NNACL_FP32_STRIDED_SLICE_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/sub_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sub_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/sub_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sub_fp32.c diff --git a/mindspore/lite/nnacl/fp32/sub_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sub_fp32.h similarity index 92% rename from mindspore/lite/nnacl/fp32/sub_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sub_fp32.h index b8464171908..8811fd27cc6 100644 --- a/mindspore/lite/nnacl/fp32/sub_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/sub_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SUB_FP32_H_ -#define MINDSPORE_LITE_NNACL_SUB_FP32_H_ +#ifndef MINDSPORE_NNACL_SUB_FP32_H_ +#define MINDSPORE_NNACL_SUB_FP32_H_ #ifdef ENABLE_NEON #include @@ -40,4 +40,4 @@ int ElementOptSubInt(const int *in0, const int *in1, int *out, int size, const A } #endif -#endif // MINDSPORE_LITE_NNACL_SUB_FP32_H_ +#endif // MINDSPORE_NNACL_SUB_FP32_H_ diff --git a/mindspore/lite/nnacl/fp32/topk_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/topk_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/topk_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/topk_fp32.c diff --git a/mindspore/lite/nnacl/fp32/topk_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/topk_fp32.h similarity index 90% rename from mindspore/lite/nnacl/fp32/topk_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/topk_fp32.h index 64bfd2a242d..82a03ac8e7e 100644 --- a/mindspore/lite/nnacl/fp32/topk_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/topk_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TOPK_H_ -#define MINDSPORE_LITE_NNACL_TOPK_H_ +#ifndef MINDSPORE_NNACL_TOPK_H_ +#define MINDSPORE_NNACL_TOPK_H_ #include "nnacl/op_base.h" @@ -44,4 +44,4 @@ void Topk(float *input_data, float *output_data, int32_t *output_index, TopkPara } #endif -#endif // MINDSPORE_LITE_NNACL_TOPK_H_ +#endif // MINDSPORE_NNACL_TOPK_H_ diff --git a/mindspore/lite/nnacl/fp32/transpose_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/transpose_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/transpose_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/transpose_fp32.c diff --git a/mindspore/lite/nnacl/fp32/transpose_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/transpose_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/transpose_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/transpose_fp32.h index b3e6a5fb3ba..6cef303c104 100644 --- a/mindspore/lite/nnacl/fp32/transpose_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/transpose_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_TRANSPOSE_H_ -#define MINDSPORE_LITE_NNACL_FP32_TRANSPOSE_H_ +#ifndef MINDSPORE_NNACL_FP32_TRANSPOSE_H_ +#define MINDSPORE_NNACL_FP32_TRANSPOSE_H_ #include #include "nnacl/transpose.h" @@ -32,4 +32,4 @@ void TransposeDimsFp32(const float *in_data, float *out_data, const int *output_ } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_TRANSPOSE_H_ +#endif // MINDSPORE_NNACL_FP32_TRANSPOSE_H_ diff --git a/mindspore/lite/nnacl/fp32/unique_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/unique_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/unique_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/unique_fp32.c diff --git a/mindspore/lite/nnacl/fp32/unique_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/unique_fp32.h similarity index 88% rename from mindspore/lite/nnacl/fp32/unique_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/unique_fp32.h index 95b89350c16..2051048c74c 100644 --- a/mindspore/lite/nnacl/fp32/unique_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/unique_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNIQUE_H -#define MINDSPORE_LITE_NNACL_UNIQUE_H +#ifndef MINDSPORE_NNACL_UNIQUE_H +#define MINDSPORE_NNACL_UNIQUE_H #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ void Unique(const float *input, int input_len, float *output0, int *output0_len, } #endif -#endif // MINDSPORE_LITE_NNACL_UNIQUE_H +#endif // MINDSPORE_NNACL_UNIQUE_H diff --git a/mindspore/lite/nnacl/fp32/where_fp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/where_fp32.c similarity index 100% rename from mindspore/lite/nnacl/fp32/where_fp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/where_fp32.c diff --git a/mindspore/lite/nnacl/fp32/where_fp32.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/where_fp32.h similarity index 86% rename from mindspore/lite/nnacl/fp32/where_fp32.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/where_fp32.h index 70f7d44217f..dbd06d6fdff 100644 --- a/mindspore/lite/nnacl/fp32/where_fp32.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/where_fp32.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_WHERE_Fp32_H_ -#define MINDSPORE_LITE_NNACL_FP32_WHERE_Fp32_H_ +#ifndef MINDSPORE_NNACL_FP32_WHERE_Fp32_H_ +#define MINDSPORE_NNACL_FP32_WHERE_Fp32_H_ #include "nnacl/op_base.h" #include "nnacl/where_parameter.h" @@ -28,4 +28,4 @@ void WhereWithTripleInputs(const bool *condition, const float *x, const float *y } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_WHERE_Fp32_H_ +#endif // MINDSPORE_NNACL_FP32_WHERE_Fp32_H_ diff --git a/mindspore/lite/nnacl/fp32/winograd_transform.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_transform.c similarity index 100% rename from mindspore/lite/nnacl/fp32/winograd_transform.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_transform.c diff --git a/mindspore/lite/nnacl/fp32/winograd_transform.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_transform.h similarity index 89% rename from mindspore/lite/nnacl/fp32/winograd_transform.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_transform.h index 58da6822157..9bfc99ebcbb 100644 --- a/mindspore/lite/nnacl/fp32/winograd_transform.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_transform.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_WINOGRAD_TRANSFORM_H_ -#define MINDSPORE_LITE_NNACL_WINOGRAD_TRANSFORM_H_ +#ifndef MINDSPORE_NNACL_WINOGRAD_TRANSFORM_H_ +#define MINDSPORE_NNACL_WINOGRAD_TRANSFORM_H_ #ifdef ENABLE_ARM #include @@ -40,4 +40,4 @@ void WinogradOutputTransform(const float *gemm_out, float *out_data, const float } #endif -#endif // MINDSPORE_LITE_NNACL_WINOGRAD_TRANSFORM_H_ +#endif // MINDSPORE_NNACL_WINOGRAD_TRANSFORM_H_ diff --git a/mindspore/lite/nnacl/fp32/winograd_utils.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_utils.c similarity index 100% rename from mindspore/lite/nnacl/fp32/winograd_utils.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_utils.c diff --git a/mindspore/lite/nnacl/fp32/winograd_utils.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_utils.h similarity index 99% rename from mindspore/lite/nnacl/fp32/winograd_utils.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_utils.h index 22ed181a9a7..dd6d90d23e7 100644 --- a/mindspore/lite/nnacl/fp32/winograd_utils.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/winograd_utils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_WINOGRAD_UTILS_H_ -#define MINDSPORE_LITE_NNACL_WINOGRAD_UTILS_H_ +#ifndef MINDSPORE_NNACL_WINOGRAD_UTILS_H_ +#define MINDSPORE_NNACL_WINOGRAD_UTILS_H_ #ifdef ENABLE_ARM #include @@ -313,4 +313,4 @@ bool CheckIfUseWinograd(int *output_unit, ConvParameter *conv_param); } #endif -#endif // MINDSPORE_LITE_NNACL_WINOGRAD_UTILS_H_ +#endif // MINDSPORE_NNACL_WINOGRAD_UTILS_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/activation_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/activation_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/activation_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/activation_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/activation_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/activation_grad.h similarity index 89% rename from mindspore/lite/nnacl/fp32_grad/activation_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/activation_grad.h index f6a3db303f0..8317571386a 100644 --- a/mindspore/lite/nnacl/fp32_grad/activation_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/activation_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ #include #include "nnacl/op_base.h" @@ -44,4 +44,4 @@ int GeluGrad(float *src0, float *src1, size_t length, float *dst); } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_ACTIVATION_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/arithmetic_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/arithmetic_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/arithmetic_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/arithmetic_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/arithmetic_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/arithmetic_grad.h similarity index 90% rename from mindspore/lite/nnacl/fp32_grad/arithmetic_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/arithmetic_grad.h index f4077634a7d..2cbf041e9d6 100644 --- a/mindspore/lite/nnacl/fp32_grad/arithmetic_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/arithmetic_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ #include "nnacl/op_base.h" @@ -35,4 +35,4 @@ int ElementRsqrtGrad(const float *in1, const float *in2, float *out, const int e } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_ARITHMETIC_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/batch_norm.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/batch_norm.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/batch_norm.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/batch_norm.c diff --git a/mindspore/lite/nnacl/fp32_grad/batch_norm.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/batch_norm.h similarity index 90% rename from mindspore/lite/nnacl/fp32_grad/batch_norm.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/batch_norm.h index 9931819696f..c701e02308a 100644 --- a/mindspore/lite/nnacl/fp32_grad/batch_norm.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/batch_norm.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_BATCH_NORM_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_BATCH_NORM_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_BATCH_NORM_H_ +#define MINDSPORE_NNACL_FP32_GRAD_BATCH_NORM_H_ #include "nnacl/op_base.h" @@ -39,4 +39,4 @@ void backwardP2(const float *in, const float *yt, const float *mean, const float } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_BATCH_NORM_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_BATCH_NORM_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/binary_cross_entropy.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy.c diff --git a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy.h similarity index 86% rename from mindspore/lite/nnacl/fp32_grad/binary_cross_entropy.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy.h index dc921691cd3..ce3581f8902 100644 --- a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_H_ -#define MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_H_ +#ifndef MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_H_ +#define MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_H_ #include "nnacl/op_base.h" @@ -33,4 +33,4 @@ void BinaryCrossEntropy(const int input_size, const int reduction, const float * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_H_ +#endif // MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/binary_cross_entropy_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy_grad.h similarity index 85% rename from mindspore/lite/nnacl/fp32_grad/binary_cross_entropy_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy_grad.h index f3c7c3952da..57a7785a140 100644 --- a/mindspore/lite/nnacl/fp32_grad/binary_cross_entropy_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/binary_cross_entropy_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ -#define MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ +#ifndef MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ +#define MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ #include "nnacl/op_base.h" @@ -33,4 +33,4 @@ int BinaryCrossEntropyGrad(const int input_size, const int reduction, const floa #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ +#endif // MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/convolution_grad_filter.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/convolution_grad_filter.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/convolution_grad_filter.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/convolution_grad_filter.c diff --git a/mindspore/lite/nnacl/fp32_grad/convolution_grad_filter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/convolution_grad_filter.h similarity index 80% rename from mindspore/lite/nnacl/fp32_grad/convolution_grad_filter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/convolution_grad_filter.h index 0209f942855..e4c0342ec92 100644 --- a/mindspore/lite/nnacl/fp32_grad/convolution_grad_filter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/convolution_grad_filter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ +#define MINDSPORE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ #include #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int ConvDwFilterGrad(const float *x, const float *dy, float *dw, int start, int } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_CONVOLUTION_GRAD_FILTER_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/dropout_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/dropout_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/dropout_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_grad.h similarity index 82% rename from mindspore/lite/nnacl/fp32_grad/dropout_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_grad.h index 1124eb29f60..82928c7cbf4 100644 --- a/mindspore/lite/nnacl/fp32_grad/dropout_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_grad.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ #include "nnacl/op_base.h" @@ -28,4 +28,4 @@ void DropoutGrad(const float *yt_ptr, const float *mask, float *output_ptr, int } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_DROPOUT_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/dropout_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_parameter.h similarity index 80% rename from mindspore/lite/nnacl/fp32_grad/dropout_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_parameter.h index 789254abae0..29b988c4c8c 100644 --- a/mindspore/lite/nnacl/fp32_grad/dropout_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/dropout_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ +#define MINDSPORE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ #include "nnacl/op_base.h" @@ -24,4 +24,4 @@ typedef struct DropoutParameter { float ratio_; } DropoutParameter; -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_DROPOUT_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/gemm.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/gemm.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.c diff --git a/mindspore/lite/nnacl/fp32_grad/gemm.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.h similarity index 90% rename from mindspore/lite/nnacl/fp32_grad/gemm.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.h index 91ae7945840..f557609479d 100644 --- a/mindspore/lite/nnacl/fp32_grad/gemm.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_GEMM_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_GEMM_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_GEMM_H_ +#define MINDSPORE_NNACL_FP32_GRAD_GEMM_H_ #include #include "nnacl/op_base.h" @@ -42,4 +42,4 @@ void AddMatrix(const float *v1, float *v2, float beta, int row, int col, int str } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_GEMM_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_GEMM_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/layernorm_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernorm_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/layernorm_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernorm_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/layernorm_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernorm_grad.h similarity index 83% rename from mindspore/lite/nnacl/fp32_grad/layernorm_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernorm_grad.h index 3016fced413..ab9122c5c93 100644 --- a/mindspore/lite/nnacl/fp32_grad/layernorm_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernorm_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ #ifdef __cplusplus extern "C" { @@ -26,4 +26,4 @@ void LayerNormGrad(const float *x, const float *dy, const float *var, const floa #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_LAYERNORM_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/layernormgrad_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernormgrad_parameter.h similarity index 79% rename from mindspore/lite/nnacl/fp32_grad/layernormgrad_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernormgrad_parameter.h index fcf35e95bfb..c783ffd6c85 100644 --- a/mindspore/lite/nnacl/fp32_grad/layernormgrad_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/layernormgrad_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ +#define MINDSPORE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ #include "nnacl/op_base.h" @@ -24,4 +24,4 @@ typedef struct LayerNormGradParameter { int begin_params_axis_; } LayerNormGradParameter; -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_LAYERNORMGRAD_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/optimizer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/optimizer.h similarity index 86% rename from mindspore/lite/nnacl/fp32_grad/optimizer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/optimizer.h index 0cc52ced606..91659d60071 100644 --- a/mindspore/lite/nnacl/fp32_grad/optimizer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/optimizer.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_OPTIMIZER_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_OPTIMIZER_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_OPTIMIZER_H_ +#define MINDSPORE_NNACL_FP32_GRAD_OPTIMIZER_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct AdamParameter { bool use_nesterov_; } AdamParameter; -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_OPTIMIZER_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_OPTIMIZER_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/pack_ext.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pack_ext.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/pack_ext.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pack_ext.c diff --git a/mindspore/lite/nnacl/fp32_grad/pack_ext.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pack_ext.h similarity index 90% rename from mindspore/lite/nnacl/fp32_grad/pack_ext.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pack_ext.h index ca8b67336d4..f040fdc5803 100644 --- a/mindspore/lite/nnacl/fp32_grad/pack_ext.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pack_ext.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_PACK_EXT_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_PACK_EXT_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_PACK_EXT_H_ +#define MINDSPORE_NNACL_FP32_GRAD_PACK_EXT_H_ #include #include "nnacl/conv_parameter.h" @@ -36,4 +36,4 @@ void rolling_col2im_hwc(const float *data_col, float *data_im, const ConvParamet } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_PACK_EXT_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_PACK_EXT_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/pooling_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pooling_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/pooling_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pooling_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/pooling_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pooling_grad.h similarity index 85% rename from mindspore/lite/nnacl/fp32_grad/pooling_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pooling_grad.h index 1bfd684ad40..b794b9b97ad 100644 --- a/mindspore/lite/nnacl/fp32_grad/pooling_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/pooling_grad.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_POOLING_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_POOLING_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_POOLING_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_POOLING_GRAD_H_ #include "nnacl/fp32/pooling_fp32.h" @@ -29,4 +29,4 @@ void MaxPoolingGrad(const float *input_ptr, const float *dy_ptr, float *output_p } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_POOLING_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_POOLING_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/reduce_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/reduce_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/reduce_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/reduce_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/reduce_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/reduce_grad.h similarity index 83% rename from mindspore/lite/nnacl/fp32_grad/reduce_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/reduce_grad.h index 3f461d175f5..f004378380c 100644 --- a/mindspore/lite/nnacl/fp32_grad/reduce_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/reduce_grad.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ #include @@ -27,4 +27,4 @@ void ReduceSumByAxes(const float *input, const int *input_dims, float *output, c #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_REDUCE_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/resize_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/resize_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/resize_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/resize_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/resize_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/resize_grad.h similarity index 88% rename from mindspore/lite/nnacl/fp32_grad/resize_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/resize_grad.h index 8d7630810eb..e2411ec6ef2 100644 --- a/mindspore/lite/nnacl/fp32_grad/resize_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/resize_grad.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ #include "nnacl/op_base.h" @@ -41,4 +41,4 @@ void ResizeBiLinearGrad(float *in_addr, float *out_addr, int batch_size, int cha #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_RESIZE_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/smooth_l1_loss.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/smooth_l1_loss.h similarity index 79% rename from mindspore/lite/nnacl/fp32_grad/smooth_l1_loss.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/smooth_l1_loss.h index bc874768ccb..d7c340710e7 100644 --- a/mindspore/lite/nnacl/fp32_grad/smooth_l1_loss.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/smooth_l1_loss.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ +#define MINDSPORE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ #include "nnacl/op_base.h" @@ -24,4 +24,4 @@ typedef struct SmoothL1LossParameter { float beta_; } SmoothL1LossParameter; -#endif // MINDSPORE_LITE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ +#endif // MINDSPORE_NNACL_FP32_SMOOTH_L1_LOSS_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/softmax_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/softmax_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/softmax_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/softmax_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/softmax_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/softmax_grad.h similarity index 87% rename from mindspore/lite/nnacl/fp32_grad/softmax_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/softmax_grad.h index d70a70730d3..4c2ae3d5c2f 100644 --- a/mindspore/lite/nnacl/fp32_grad/softmax_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/softmax_grad.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ #include "nnacl/op_base.h" #include "nnacl/fp32/softmax_fp32.h" @@ -44,4 +44,4 @@ void SoftmaxGrad(const float *input_ptr, const float *yt_ptr, float *output_ptr, } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_SOFTMAX_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/strided_slice_grad.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/strided_slice_grad.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/strided_slice_grad.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/strided_slice_grad.c diff --git a/mindspore/lite/nnacl/fp32_grad/strided_slice_grad.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/strided_slice_grad.h similarity index 82% rename from mindspore/lite/nnacl/fp32_grad/strided_slice_grad.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/strided_slice_grad.h index 5ed2a68d76c..75fe2cf53d0 100644 --- a/mindspore/lite/nnacl/fp32_grad/strided_slice_grad.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/strided_slice_grad.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ +#define MINDSPORE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ #include "nnacl/op_base.h" #include "nnacl/strided_slice_parameter.h" @@ -27,4 +27,4 @@ int DoStridedSliceGrad(const float *inputs, float *output, const int *dx_shape, } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_STRIDED_SLICE_GRAD_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/unsorted_segment_sum.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/unsorted_segment_sum.c similarity index 100% rename from mindspore/lite/nnacl/fp32_grad/unsorted_segment_sum.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/unsorted_segment_sum.c diff --git a/mindspore/lite/nnacl/fp32_grad/unsorted_segment_sum.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/unsorted_segment_sum.h similarity index 81% rename from mindspore/lite/nnacl/fp32_grad/unsorted_segment_sum.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/unsorted_segment_sum.h index c0b891dc74c..c2ea9e03fcd 100644 --- a/mindspore/lite/nnacl/fp32_grad/unsorted_segment_sum.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/unsorted_segment_sum.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ +#define MINDSPORE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ #ifdef __cplusplus extern "C" { @@ -26,4 +26,4 @@ int UnsortedSegmentSum(const float *input, int unit_num, int input_dim1, const i #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_UNSORTED_SEGMENT_SUM_H_ diff --git a/mindspore/lite/nnacl/fp32_grad/utils.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/utils.h similarity index 92% rename from mindspore/lite/nnacl/fp32_grad/utils.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/utils.h index f7895aa9173..618e1bc6fc4 100644 --- a/mindspore/lite/nnacl/fp32_grad/utils.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/utils.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FP32_GRAD_UTILS_H_ -#define MINDSPORE_LITE_NNACL_FP32_GRAD_UTILS_H_ +#ifndef MINDSPORE_NNACL_FP32_GRAD_UTILS_H_ +#define MINDSPORE_NNACL_FP32_GRAD_UTILS_H_ #include "nnacl/op_base.h" @@ -69,4 +69,4 @@ static inline int NextIndex(int num_dims, const int *dims, int *current) { } #endif -#endif // MINDSPORE_LITE_NNACL_FP32_GRAD_UTILS_H_ +#endif // MINDSPORE_NNACL_FP32_GRAD_UTILS_H_ diff --git a/mindspore/lite/nnacl/gather_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gather_parameter.h similarity index 100% rename from mindspore/lite/nnacl/gather_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gather_parameter.h diff --git a/mindspore/lite/nnacl/gelu_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gelu_parameter.h similarity index 84% rename from mindspore/lite/nnacl/gelu_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gelu_parameter.h index 7a16900665c..932b36a7f14 100644 --- a/mindspore/lite/nnacl/gelu_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gelu_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GELU_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_GELU_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_GELU_PARAMETER_H_ +#define MINDSPORE_NNACL_GELU_PARAMETER_H_ #include "nnacl/op_base.h" @@ -25,4 +25,4 @@ typedef struct GeLUParameter { bool approximate_; } GeLUParameter; -#endif // MINDSPORE_LITE_NNACL_GELU_PARAMETER_H_ +#endif // MINDSPORE_NNACL_GELU_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/gru_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gru_parameter.h similarity index 87% rename from mindspore/lite/nnacl/gru_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gru_parameter.h index fdea2c29868..8f71f43d22b 100644 --- a/mindspore/lite/nnacl/gru_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/gru_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GRU_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_GRU_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_GRU_PARAMETER_H_ +#define MINDSPORE_NNACL_GRU_PARAMETER_H_ #include "nnacl/op_base.h" @@ -35,4 +35,4 @@ typedef struct GruParameter { int state_col_align_; } GruParameter; -#endif // MINDSPORE_LITE_NNACL_GRU_PARAMETER_H_ +#endif // MINDSPORE_NNACL_GRU_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/infer/adam_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/adam_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/adam_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/adam_infer.c diff --git a/mindspore/lite/nnacl/infer/adam_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/adam_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/adam_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/adam_infer.h index f4ec6668130..ab6e4f0c95e 100644 --- a/mindspore/lite/nnacl/infer/adam_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/adam_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ADAM_INFER_H -#define MINDSPORE_LITE_NNACL_ADAM_INFER_H +#ifndef MINDSPORE_NNACL_ADAM_INFER_H +#define MINDSPORE_NNACL_ADAM_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AdamInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ADAM_INFER_H +#endif // MINDSPORE_NNACL_ADAM_INFER_H diff --git a/mindspore/lite/nnacl/infer/add_sub_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/add_sub_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/add_sub_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/add_sub_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/add_sub_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/add_sub_grad_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/add_sub_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/add_sub_grad_infer.h index 4d3b959b429..870cb1db0fe 100644 --- a/mindspore/lite/nnacl/infer/add_sub_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/add_sub_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ADD_SUB_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_ADD_SUB_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_ADD_SUB_GRAD_INFER_H +#define MINDSPORE_NNACL_ADD_SUB_GRAD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AddSubGradInferShape(const TensorC *const *inputs, size_t inputs_size, Tenso #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ADD_SUB_GRAD_INFER_H +#endif // MINDSPORE_NNACL_ADD_SUB_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/addn_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/addn_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/addn_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/addn_infer.c diff --git a/mindspore/lite/nnacl/infer/addn_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/addn_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/addn_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/addn_infer.h index 76f34944e81..a0c889c600f 100644 --- a/mindspore/lite/nnacl/infer/addn_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/addn_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ADDN_INFER_H -#define MINDSPORE_LITE_NNACL_ADDN_INFER_H +#ifndef MINDSPORE_NNACL_ADDN_INFER_H +#define MINDSPORE_NNACL_ADDN_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AddnInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ADDN_INFER_H +#endif // MINDSPORE_NNACL_ADDN_INFER_H diff --git a/mindspore/lite/nnacl/infer/apply_momentum_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/apply_momentum_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/apply_momentum_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/apply_momentum_infer.c diff --git a/mindspore/lite/nnacl/infer/apply_momentum_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/apply_momentum_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/apply_momentum_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/apply_momentum_infer.h index a377b3a5e09..f7460f0b3b7 100644 --- a/mindspore/lite/nnacl/infer/apply_momentum_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/apply_momentum_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_APPLY_MOMENTUM_INFER_H -#define MINDSPORE_LITE_NNACL_APPLY_MOMENTUM_INFER_H +#ifndef MINDSPORE_NNACL_APPLY_MOMENTUM_INFER_H +#define MINDSPORE_NNACL_APPLY_MOMENTUM_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int ApplyMomentumInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_APPLY_MOMENTUM_INFER_H +#endif // MINDSPORE_NNACL_APPLY_MOMENTUM_INFER_H diff --git a/mindspore/lite/nnacl/infer/argmin_max_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/argmin_max_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/argmin_max_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/argmin_max_infer.c diff --git a/mindspore/lite/nnacl/infer/argmin_max_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/argmin_max_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/argmin_max_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/argmin_max_infer.h index 42726b3c57a..2febbc78501 100644 --- a/mindspore/lite/nnacl/infer/argmin_max_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/argmin_max_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARGMAX_INFER_H -#define MINDSPORE_LITE_NNACL_ARGMAX_INFER_H +#ifndef MINDSPORE_NNACL_ARGMAX_INFER_H +#define MINDSPORE_NNACL_ARGMAX_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/arg_min_max_parameter.h" @@ -29,4 +29,4 @@ int ArgMinMaxInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ARGMAX_INFER_H +#endif // MINDSPORE_NNACL_ARGMAX_INFER_H diff --git a/mindspore/lite/nnacl/infer/arithmetic_compare_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_compare_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/arithmetic_compare_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_compare_infer.c diff --git a/mindspore/lite/nnacl/infer/arithmetic_compare_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_compare_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/arithmetic_compare_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_compare_infer.h index 2934cdce958..5513fb1219e 100644 --- a/mindspore/lite/nnacl/infer/arithmetic_compare_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_compare_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_INFER_H -#define MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_INFER_H +#ifndef MINDSPORE_NNACL_ARITHMETIC_COMPARE_INFER_H +#define MINDSPORE_NNACL_ARITHMETIC_COMPARE_INFER_H #include "nnacl/infer/arithmetic_infer.h" @@ -28,4 +28,4 @@ int ArithmeticCompareInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_COMPARE_INFER_H +#endif // MINDSPORE_NNACL_ARITHMETIC_COMPARE_INFER_H diff --git a/mindspore/lite/nnacl/infer/arithmetic_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/arithmetic_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/arithmetic_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_grad_infer.h similarity index 82% rename from mindspore/lite/nnacl/infer/arithmetic_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_grad_infer.h index bdb1dbfbf1c..bedf1dabb23 100644 --- a/mindspore/lite/nnacl/infer/arithmetic_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ +#define MINDSPORE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int ArithmeticGradInferShape(const TensorC *const *inputs, size_t inputs_size, T #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_ARITHMETIC_GRAD_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/arithmetic_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/arithmetic_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_infer.c diff --git a/mindspore/lite/nnacl/infer/arithmetic_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/arithmetic_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_infer.h index c7ee565643a..c6b06bef69a 100644 --- a/mindspore/lite/nnacl/infer/arithmetic_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/arithmetic_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ARITHMETIC_INFER_H -#define MINDSPORE_LITE_NNACL_ARITHMETIC_INFER_H +#ifndef MINDSPORE_NNACL_ARITHMETIC_INFER_H +#define MINDSPORE_NNACL_ARITHMETIC_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/arithmetic.h" @@ -29,4 +29,4 @@ int ArithmeticInferShape(const TensorC *const *inputs, size_t inputs_size, Tenso #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ARITHMETIC_INFER_H +#endif // MINDSPORE_NNACL_ARITHMETIC_INFER_H diff --git a/mindspore/lite/nnacl/infer/assert_op_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assert_op_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/assert_op_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assert_op_infer.c diff --git a/mindspore/lite/nnacl/infer/assert_op_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assert_op_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/assert_op_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assert_op_infer.h index 4e03466f118..5f0156e95d8 100644 --- a/mindspore/lite/nnacl/infer/assert_op_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assert_op_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ASSERT_OP_INFER_H -#define MINDSPORE_LITE_NNACL_ASSERT_OP_INFER_H +#ifndef MINDSPORE_NNACL_ASSERT_OP_INFER_H +#define MINDSPORE_NNACL_ASSERT_OP_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AssertOpInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ASSERT_OP_INFER_H +#endif // MINDSPORE_NNACL_ASSERT_OP_INFER_H diff --git a/mindspore/lite/nnacl/infer/assign_add_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_add_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/assign_add_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_add_infer.c diff --git a/mindspore/lite/nnacl/infer/assign_add_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_add_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/assign_add_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_add_infer.h index 0290e88b578..1f7cea8abae 100644 --- a/mindspore/lite/nnacl/infer/assign_add_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_add_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ASSIGN_ADD_INFER_H -#define MINDSPORE_LITE_NNACL_ASSIGN_ADD_INFER_H +#ifndef MINDSPORE_NNACL_ASSIGN_ADD_INFER_H +#define MINDSPORE_NNACL_ASSIGN_ADD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AssignAddInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ASSIGN_ADD_INFER_H +#endif // MINDSPORE_NNACL_ASSIGN_ADD_INFER_H diff --git a/mindspore/lite/nnacl/infer/assign_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/assign_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_infer.c diff --git a/mindspore/lite/nnacl/infer/assign_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/assign_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_infer.h index fe276b79e38..1de69e21851 100644 --- a/mindspore/lite/nnacl/infer/assign_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/assign_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ASSIGN_INFER_H -#define MINDSPORE_LITE_NNACL_ASSIGN_INFER_H +#ifndef MINDSPORE_NNACL_ASSIGN_INFER_H +#define MINDSPORE_NNACL_ASSIGN_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int AssignInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ASSIGN_INFER_H +#endif // MINDSPORE_NNACL_ASSIGN_INFER_H diff --git a/mindspore/lite/nnacl/infer/audio_spectrogram_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/audio_spectrogram_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/audio_spectrogram_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/audio_spectrogram_infer.c diff --git a/mindspore/lite/nnacl/infer/audio_spectrogram_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/audio_spectrogram_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/audio_spectrogram_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/audio_spectrogram_infer.h index 030883c8b69..af5daa018bb 100644 --- a/mindspore/lite/nnacl/infer/audio_spectrogram_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/audio_spectrogram_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_AUDIO_SPECTROGRAM_INFER_H -#define MINDSPORE_LITE_NNACL_AUDIO_SPECTROGRAM_INFER_H +#ifndef MINDSPORE_NNACL_AUDIO_SPECTROGRAM_INFER_H +#define MINDSPORE_NNACL_AUDIO_SPECTROGRAM_INFER_H #include "nnacl/infer/common_infer.h" @@ -34,4 +34,4 @@ int AudioSpectrogramInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_AUDIO_SPECTROGRAM_INFER_H +#endif // MINDSPORE_NNACL_AUDIO_SPECTROGRAM_INFER_H diff --git a/mindspore/lite/nnacl/infer/batch_to_space_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/batch_to_space_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/batch_to_space_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/batch_to_space_infer.c diff --git a/mindspore/lite/nnacl/infer/batch_to_space_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/batch_to_space_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/batch_to_space_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/batch_to_space_infer.h index 261a1f76bfb..dd1a64783cb 100644 --- a/mindspore/lite/nnacl/infer/batch_to_space_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/batch_to_space_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_INFER_H -#define MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_INFER_H +#ifndef MINDSPORE_NNACL_BATCH_TO_SPACE_INFER_H +#define MINDSPORE_NNACL_BATCH_TO_SPACE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/batch_to_space.h" @@ -29,4 +29,4 @@ int BatchToSpaceInferShape(const TensorC *const *inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BATCH_TO_SPACE_INFER_H +#endif // MINDSPORE_NNACL_BATCH_TO_SPACE_INFER_H diff --git a/mindspore/lite/nnacl/infer/bias_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bias_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/bias_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bias_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/bias_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bias_grad_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/bias_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bias_grad_infer.h index 2b40694d09a..3d87f516c49 100644 --- a/mindspore/lite/nnacl/infer/bias_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bias_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BIAS_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_BIAS_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_BIAS_GRAD_INFER_H +#define MINDSPORE_NNACL_BIAS_GRAD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int BiasGradInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BIAS_GRAD_INFER_H +#endif // MINDSPORE_NNACL_BIAS_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/binary_cross_entropy_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/binary_cross_entropy_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/binary_cross_entropy_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/binary_cross_entropy_infer.c diff --git a/mindspore/lite/nnacl/infer/binary_cross_entropy_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/binary_cross_entropy_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/binary_cross_entropy_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/binary_cross_entropy_infer.h index 6727303255a..6f4657c6432 100644 --- a/mindspore/lite/nnacl/infer/binary_cross_entropy_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/binary_cross_entropy_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_INFER_H -#define MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_INFER_H +#ifndef MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_INFER_H +#define MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32_grad/binary_cross_entropy.h" @@ -29,4 +29,4 @@ int BinaryCrossEntropyInferShape(const TensorC *const *inputs, size_t inputs_siz #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BINARY_CROSS_ENTROPY_INFER_H +#endif // MINDSPORE_NNACL_BINARY_CROSS_ENTROPY_INFER_H diff --git a/mindspore/lite/nnacl/infer/bn_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bn_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/bn_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bn_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/bn_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bn_grad_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/bn_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bn_grad_infer.h index a28f5b2f557..5968586cb41 100644 --- a/mindspore/lite/nnacl/infer/bn_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/bn_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BN_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_BN_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_BN_GRAD_INFER_H +#define MINDSPORE_NNACL_BN_GRAD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int BnGradInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BN_GRAD_INFER_H +#endif // MINDSPORE_NNACL_BN_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/broadcast_to_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/broadcast_to_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/broadcast_to_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/broadcast_to_infer.c diff --git a/mindspore/lite/nnacl/infer/broadcast_to_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/broadcast_to_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/broadcast_to_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/broadcast_to_infer.h index a7b8630a7a2..90d818efea7 100644 --- a/mindspore/lite/nnacl/infer/broadcast_to_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/broadcast_to_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_BROADCAST_TO_INFER_H -#define MINDSPORE_LITE_NNACL_BROADCAST_TO_INFER_H +#ifndef MINDSPORE_NNACL_BROADCAST_TO_INFER_H +#define MINDSPORE_NNACL_BROADCAST_TO_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/broadcast_to_fp32.h" @@ -29,4 +29,4 @@ int BroadcastToInferShape(const TensorC *const *inputs, size_t inputs_size, Tens #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_BROADCAST_TO_INFER_H +#endif // MINDSPORE_NNACL_BROADCAST_TO_INFER_H diff --git a/mindspore/lite/nnacl/infer/cast_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/cast_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/cast_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/cast_infer.c diff --git a/mindspore/lite/nnacl/infer/cast_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/cast_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/cast_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/cast_infer.h index 6c669c7ca0f..a34e541accf 100644 --- a/mindspore/lite/nnacl/infer/cast_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/cast_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CAST_INFER_H -#define MINDSPORE_LITE_NNACL_CAST_INFER_H +#ifndef MINDSPORE_NNACL_CAST_INFER_H +#define MINDSPORE_NNACL_CAST_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int CastInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CAST_INFER_H +#endif // MINDSPORE_NNACL_CAST_INFER_H diff --git a/mindspore/lite/nnacl/infer/common_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/common_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/common_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/common_infer.c diff --git a/mindspore/lite/nnacl/infer/common_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/common_infer.h similarity index 98% rename from mindspore/lite/nnacl/infer/common_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/common_infer.h index b7489a89b6b..5a024f43b02 100644 --- a/mindspore/lite/nnacl/infer/common_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/common_infer.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_COMMON_H_ -#define MINDSPORE_LITE_NNACL_COMMON_H_ +#ifndef MINDSPORE_NNACL_COMMON_H_ +#define MINDSPORE_NNACL_COMMON_H_ #include #include "nnacl/errorcode.h" @@ -209,4 +209,4 @@ void VectorCFree(VectorC *vc); } #endif -#endif // MINDSPORE_LITE_NNACL_COMMON__H_ +#endif // MINDSPORE_NNACL_COMMON__H_ diff --git a/mindspore/lite/nnacl/infer/concat_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/concat_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/concat_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/concat_infer.c diff --git a/mindspore/lite/nnacl/infer/concat_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/concat_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/concat_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/concat_infer.h index 08f3b8ff787..315d60c8f7e 100644 --- a/mindspore/lite/nnacl/infer/concat_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/concat_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONCAT_INFER_H -#define MINDSPORE_LITE_NNACL_CONCAT_INFER_H +#ifndef MINDSPORE_NNACL_CONCAT_INFER_H +#define MINDSPORE_NNACL_CONCAT_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/concat_parameter.h" @@ -29,4 +29,4 @@ int ConcatInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CONCAT_INFER_H +#endif // MINDSPORE_NNACL_CONCAT_INFER_H diff --git a/mindspore/lite/nnacl/infer/constant_of_shape_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/constant_of_shape_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/constant_of_shape_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/constant_of_shape_infer.c diff --git a/mindspore/lite/nnacl/infer/constant_of_shape_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/constant_of_shape_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/constant_of_shape_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/constant_of_shape_infer.h index 4fb53ec4d3c..baceb1201a4 100644 --- a/mindspore/lite/nnacl/infer/constant_of_shape_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/constant_of_shape_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_INFER_H -#define MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_INFER_H +#ifndef MINDSPORE_NNACL_CONSTANT_OF_SHAPE_INFER_H +#define MINDSPORE_NNACL_CONSTANT_OF_SHAPE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/constant_of_shape_parameter.h" @@ -29,4 +29,4 @@ int ConstantOfShapeInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CONSTANT_OF_SHAPE_INFER_H +#endif // MINDSPORE_NNACL_CONSTANT_OF_SHAPE_INFER_H diff --git a/mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_filter_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_filter_infer.c diff --git a/mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_filter_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_filter_infer.h index 2fa82c41ded..02deb60f640 100644 --- a/mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_filter_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONV2D_GRAD_FILTER_INFER_H -#define MINDSPORE_LITE_NNACL_CONV2D_GRAD_FILTER_INFER_H +#ifndef MINDSPORE_NNACL_CONV2D_GRAD_FILTER_INFER_H +#define MINDSPORE_NNACL_CONV2D_GRAD_FILTER_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int Conv2dGradFilterInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CONV2D_GRAD_FILTER_INFER_H +#endif // MINDSPORE_NNACL_CONV2D_GRAD_FILTER_INFER_H diff --git a/mindspore/lite/nnacl/infer/conv2d_grad_input_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_input_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/conv2d_grad_input_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_input_infer.c diff --git a/mindspore/lite/nnacl/infer/conv2d_grad_input_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_input_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/conv2d_grad_input_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_input_infer.h index 4ea80be53f2..17ae57a8e56 100644 --- a/mindspore/lite/nnacl/infer/conv2d_grad_input_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_grad_input_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONV2D_GRAD_INPUT_INFER_H -#define MINDSPORE_LITE_NNACL_CONV2D_GRAD_INPUT_INFER_H +#ifndef MINDSPORE_NNACL_CONV2D_GRAD_INPUT_INFER_H +#define MINDSPORE_NNACL_CONV2D_GRAD_INPUT_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int Conv2dGradInputInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CONV2D_GRAD_INPUT_INFER_H +#endif // MINDSPORE_NNACL_CONV2D_GRAD_INPUT_INFER_H diff --git a/mindspore/lite/nnacl/infer/conv2d_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/conv2d_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_infer.c diff --git a/mindspore/lite/nnacl/infer/conv2d_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/conv2d_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_infer.h index ee0d291b6a5..fc4b8a60166 100644 --- a/mindspore/lite/nnacl/infer/conv2d_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/conv2d_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CONV2D_INFER_H -#define MINDSPORE_LITE_NNACL_CONV2D_INFER_H +#ifndef MINDSPORE_NNACL_CONV2D_INFER_H +#define MINDSPORE_NNACL_CONV2D_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int Conv2dInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CONV2D_INFER_H +#endif // MINDSPORE_NNACL_CONV2D_INFER_H diff --git a/mindspore/lite/nnacl/infer/crop_and_resize_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_and_resize_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/crop_and_resize_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_and_resize_infer.c diff --git a/mindspore/lite/nnacl/infer/crop_and_resize_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_and_resize_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/crop_and_resize_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_and_resize_infer.h index 0d0858839ad..3cb45b524e0 100644 --- a/mindspore/lite/nnacl/infer/crop_and_resize_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_and_resize_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CROP_AND_RESIZE_INFER_H -#define MINDSPORE_LITE_NNACL_CROP_AND_RESIZE_INFER_H +#ifndef MINDSPORE_NNACL_CROP_AND_RESIZE_INFER_H +#define MINDSPORE_NNACL_CROP_AND_RESIZE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int CropAndResizeInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CROP_AND_RESIZE_INFER_H +#endif // MINDSPORE_NNACL_CROP_AND_RESIZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/crop_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/crop_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_infer.c diff --git a/mindspore/lite/nnacl/infer/crop_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/crop_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_infer.h index dd6de645f3c..0691e0e1bed 100644 --- a/mindspore/lite/nnacl/infer/crop_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/crop_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CROP_INFER_H -#define MINDSPORE_LITE_NNACL_CROP_INFER_H +#ifndef MINDSPORE_NNACL_CROP_INFER_H +#define MINDSPORE_NNACL_CROP_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/crop_parameter.h" @@ -29,4 +29,4 @@ int CropInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CROP_INFER_H +#endif // MINDSPORE_NNACL_CROP_INFER_H diff --git a/mindspore/lite/nnacl/infer/custom_extract_features_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_extract_features_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/custom_extract_features_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_extract_features_infer.c diff --git a/mindspore/lite/nnacl/infer/custom_extract_features_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_extract_features_infer.h similarity index 82% rename from mindspore/lite/nnacl/infer/custom_extract_features_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_extract_features_infer.h index af518e60ce2..8890561c805 100644 --- a/mindspore/lite/nnacl/infer/custom_extract_features_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_extract_features_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H -#define MINDSPORE_LITE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H +#ifndef MINDSPORE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H +#define MINDSPORE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int CustomExtractFeaturesInferShape(const TensorC *const *inputs, size_t inputs_ #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H +#endif // MINDSPORE_NNACL_CUSTOM_EXTRACT_FEATURES_INFER_H diff --git a/mindspore/lite/nnacl/infer/custom_normalize_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_normalize_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/custom_normalize_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_normalize_infer.c diff --git a/mindspore/lite/nnacl/infer/custom_normalize_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_normalize_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/custom_normalize_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_normalize_infer.h index 6fe40cfc51a..63558b5b443 100644 --- a/mindspore/lite/nnacl/infer/custom_normalize_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_normalize_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CUSTOM_NORMALIZE_INFER_H -#define MINDSPORE_LITE_NNACL_CUSTOM_NORMALIZE_INFER_H +#ifndef MINDSPORE_NNACL_CUSTOM_NORMALIZE_INFER_H +#define MINDSPORE_NNACL_CUSTOM_NORMALIZE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int CustomNormalizeInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CUSTOM_NORMALIZE_INFER_H +#endif // MINDSPORE_NNACL_CUSTOM_NORMALIZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/custom_predict_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_predict_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/custom_predict_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_predict_infer.c diff --git a/mindspore/lite/nnacl/infer/custom_predict_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_predict_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/custom_predict_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_predict_infer.h index 4df7628e5e6..e78ec87c2b4 100644 --- a/mindspore/lite/nnacl/infer/custom_predict_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/custom_predict_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_CUSTOM_PREDICT_INFER_H -#define MINDSPORE_LITE_NNACL_CUSTOM_PREDICT_INFER_H +#ifndef MINDSPORE_NNACL_CUSTOM_PREDICT_INFER_H +#define MINDSPORE_NNACL_CUSTOM_PREDICT_INFER_H #include "nnacl/infer/common_infer.h" @@ -33,4 +33,4 @@ int CustomPredictInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_CUSTOM_PREDICT_INFER_H +#endif // MINDSPORE_NNACL_CUSTOM_PREDICT_INFER_H diff --git a/mindspore/lite/nnacl/infer/deconv2d_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/deconv2d_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/deconv2d_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/deconv2d_infer.c diff --git a/mindspore/lite/nnacl/infer/deconv2d_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/deconv2d_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/deconv2d_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/deconv2d_infer.h index 0563a9c6e97..5bc0689dcdc 100644 --- a/mindspore/lite/nnacl/infer/deconv2d_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/deconv2d_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DECONV2D_INFER_H -#define MINDSPORE_LITE_NNACL_DECONV2D_INFER_H +#ifndef MINDSPORE_NNACL_DECONV2D_INFER_H +#define MINDSPORE_NNACL_DECONV2D_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int Deconv2dInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DECONV2D_INFER_H +#endif // MINDSPORE_NNACL_DECONV2D_INFER_H diff --git a/mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dedepthwise_conv2d_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dedepthwise_conv2d_infer.c diff --git a/mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dedepthwise_conv2d_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dedepthwise_conv2d_infer.h index 59f295e141f..3a989d851f0 100644 --- a/mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dedepthwise_conv2d_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DEDEPTHWISE_CONV2D_INFER_H -#define MINDSPORE_LITE_NNACL_DEDEPTHWISE_CONV2D_INFER_H +#ifndef MINDSPORE_NNACL_DEDEPTHWISE_CONV2D_INFER_H +#define MINDSPORE_NNACL_DEDEPTHWISE_CONV2D_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int DeDepthwiseConv2DInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DEDEPTHWISE_CONV2D_INFER_H +#endif // MINDSPORE_NNACL_DEDEPTHWISE_CONV2D_INFER_H diff --git a/mindspore/lite/nnacl/infer/depth_to_space_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depth_to_space_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/depth_to_space_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depth_to_space_infer.c diff --git a/mindspore/lite/nnacl/infer/depth_to_space_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depth_to_space_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/depth_to_space_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depth_to_space_infer.h index be114f56e87..d80414d3c36 100644 --- a/mindspore/lite/nnacl/infer/depth_to_space_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depth_to_space_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DEPTHTOSPACE_INFER_H -#define MINDSPORE_LITE_NNACL_DEPTHTOSPACE_INFER_H +#ifndef MINDSPORE_NNACL_DEPTHTOSPACE_INFER_H +#define MINDSPORE_NNACL_DEPTHTOSPACE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/depth_to_space_parameter.h" @@ -29,4 +29,4 @@ int DepthToSpaceInferShape(const TensorC *const *inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DEPTHTOSPACE_INFER_H +#endif // MINDSPORE_NNACL_DEPTHTOSPACE_INFER_H diff --git a/mindspore/lite/nnacl/infer/depthwise_conv2d_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depthwise_conv2d_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/depthwise_conv2d_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depthwise_conv2d_infer.c diff --git a/mindspore/lite/nnacl/infer/depthwise_conv2d_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depthwise_conv2d_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/depthwise_conv2d_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depthwise_conv2d_infer.h index 799279a1c7b..d3b840a3a27 100644 --- a/mindspore/lite/nnacl/infer/depthwise_conv2d_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/depthwise_conv2d_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DEPTHWISE_CONV2D_INFER_H -#define MINDSPORE_LITE_NNACL_DEPTHWISE_CONV2D_INFER_H +#ifndef MINDSPORE_NNACL_DEPTHWISE_CONV2D_INFER_H +#define MINDSPORE_NNACL_DEPTHWISE_CONV2D_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int DepthwiseConv2dInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DEPTHWISE_CONV2D_INFER_H +#endif // MINDSPORE_NNACL_DEPTHWISE_CONV2D_INFER_H diff --git a/mindspore/lite/nnacl/infer/detection_post_process_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/detection_post_process_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/detection_post_process_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/detection_post_process_infer.c diff --git a/mindspore/lite/nnacl/infer/detection_post_process_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/detection_post_process_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/detection_post_process_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/detection_post_process_infer.h index f5ac10500f3..6e74e56f7ea 100644 --- a/mindspore/lite/nnacl/infer/detection_post_process_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/detection_post_process_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_INFER_H -#define MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_INFER_H +#ifndef MINDSPORE_NNACL_DETECTION_POST_PROCESS_INFER_H +#define MINDSPORE_NNACL_DETECTION_POST_PROCESS_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/detection_post_process_parameter.h" @@ -29,4 +29,4 @@ int DetectionPostProcessInferShape(const TensorC *const *inputs, size_t inputs_s #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DETECTION_POST_PROCESS_INFER_H +#endif // MINDSPORE_NNACL_DETECTION_POST_PROCESS_INFER_H diff --git a/mindspore/lite/nnacl/infer/dropout_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/dropout_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/dropout_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_grad_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/dropout_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_grad_infer.h index b88bfe11da1..df8d9c5a277 100644 --- a/mindspore/lite/nnacl/infer/dropout_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DROPOUT_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_DROPOUT_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_DROPOUT_GRAD_INFER_H +#define MINDSPORE_NNACL_DROPOUT_GRAD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int DropoutGradInferShape(const TensorC *const *inputs, size_t inputs_size, Tens #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DROPOUT_GRAD_INFER_H +#endif // MINDSPORE_NNACL_DROPOUT_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/dropout_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/dropout_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_infer.c diff --git a/mindspore/lite/nnacl/infer/dropout_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/dropout_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_infer.h index 9e13f939c4c..c592a9bfa60 100644 --- a/mindspore/lite/nnacl/infer/dropout_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/dropout_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_DROPOUT_INFER_H -#define MINDSPORE_LITE_NNACL_DROPOUT_INFER_H +#ifndef MINDSPORE_NNACL_DROPOUT_INFER_H +#define MINDSPORE_NNACL_DROPOUT_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int DropoutInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_DROPOUT_INFER_H +#endif // MINDSPORE_NNACL_DROPOUT_INFER_H diff --git a/mindspore/lite/nnacl/infer/embedding_lookup_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/embedding_lookup_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/embedding_lookup_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/embedding_lookup_infer.c diff --git a/mindspore/lite/nnacl/infer/embedding_lookup_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/embedding_lookup_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/embedding_lookup_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/embedding_lookup_infer.h index 642cf2e65ad..581b1cd8866 100644 --- a/mindspore/lite/nnacl/infer/embedding_lookup_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/embedding_lookup_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_EMBEDDING_LOOKUP_INFER_H -#define MINDSPORE_LITE_NNACL_EMBEDDING_LOOKUP_INFER_H +#ifndef MINDSPORE_NNACL_EMBEDDING_LOOKUP_INFER_H +#define MINDSPORE_NNACL_EMBEDDING_LOOKUP_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int EmbeddingLookupInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_EMBEDDING_LOOKUP_INFER_H +#endif // MINDSPORE_NNACL_EMBEDDING_LOOKUP_INFER_H diff --git a/mindspore/lite/nnacl/infer/expand_dims_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/expand_dims_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/expand_dims_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/expand_dims_infer.c diff --git a/mindspore/lite/nnacl/infer/expand_dims_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/expand_dims_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/expand_dims_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/expand_dims_infer.h index 9005d75d134..170b76cd076 100644 --- a/mindspore/lite/nnacl/infer/expand_dims_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/expand_dims_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_EXPAND_DIMS_INFER_H -#define MINDSPORE_LITE_NNACL_EXPAND_DIMS_INFER_H +#ifndef MINDSPORE_NNACL_EXPAND_DIMS_INFER_H +#define MINDSPORE_NNACL_EXPAND_DIMS_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int ExpandDimsInferShape(const TensorC *const *inputs, size_t inputs_size, Tenso #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_EXPAND_DIMS_INFER_H +#endif // MINDSPORE_NNACL_EXPAND_DIMS_INFER_H diff --git a/mindspore/lite/nnacl/infer/fft_imag_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_imag_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/fft_imag_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_imag_infer.c diff --git a/mindspore/lite/nnacl/infer/fft_imag_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_imag_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/fft_imag_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_imag_infer.h index df816e63972..8dcb2bb7265 100644 --- a/mindspore/lite/nnacl/infer/fft_imag_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_imag_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FFT_IMAG_INFER_H -#define MINDSPORE_LITE_NNACL_FFT_IMAG_INFER_H +#ifndef MINDSPORE_NNACL_FFT_IMAG_INFER_H +#define MINDSPORE_NNACL_FFT_IMAG_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FftImagInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FFT_IMAG_INFER_H +#endif // MINDSPORE_NNACL_FFT_IMAG_INFER_H diff --git a/mindspore/lite/nnacl/infer/fft_real_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_real_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/fft_real_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_real_infer.c diff --git a/mindspore/lite/nnacl/infer/fft_real_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_real_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/fft_real_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_real_infer.h index b3410ead4d2..d3e89303259 100644 --- a/mindspore/lite/nnacl/infer/fft_real_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fft_real_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FFT_REAL_INFER_H -#define MINDSPORE_LITE_NNACL_FFT_REAL_INFER_H +#ifndef MINDSPORE_NNACL_FFT_REAL_INFER_H +#define MINDSPORE_NNACL_FFT_REAL_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FftRealInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FFT_REAL_INFER_H +#endif // MINDSPORE_NNACL_FFT_REAL_INFER_H diff --git a/mindspore/lite/nnacl/infer/fill_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fill_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/fill_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fill_infer.c diff --git a/mindspore/lite/nnacl/infer/fill_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fill_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/fill_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fill_infer.h index 535a7d84a3c..9bc39a5e8ae 100644 --- a/mindspore/lite/nnacl/infer/fill_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fill_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FILL_INFER_H -#define MINDSPORE_LITE_NNACL_FILL_INFER_H +#ifndef MINDSPORE_NNACL_FILL_INFER_H +#define MINDSPORE_NNACL_FILL_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FillInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FILL_INFER_H +#endif // MINDSPORE_NNACL_FILL_INFER_H diff --git a/mindspore/lite/nnacl/infer/flatten_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/flatten_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/flatten_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_grad_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/flatten_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_grad_infer.h index 532ebe591db..503eecbccf0 100644 --- a/mindspore/lite/nnacl/infer/flatten_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FLATTEN_GRAD_INFER_INFER_H -#define MINDSPORE_LITE_NNACL_FLATTEN_GRAD_INFER_INFER_H +#ifndef MINDSPORE_NNACL_FLATTEN_GRAD_INFER_INFER_H +#define MINDSPORE_NNACL_FLATTEN_GRAD_INFER_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FlattenGradInferShape(const TensorC *const *inputs, size_t inputs_size, Tens #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FLATTEN_GRAD_INFER_INFER_H +#endif // MINDSPORE_NNACL_FLATTEN_GRAD_INFER_INFER_H diff --git a/mindspore/lite/nnacl/infer/flatten_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/flatten_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_infer.c diff --git a/mindspore/lite/nnacl/infer/flatten_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/flatten_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_infer.h index f71e25829db..755c7b36647 100644 --- a/mindspore/lite/nnacl/infer/flatten_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/flatten_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FLATTEN_INFER_H -#define MINDSPORE_LITE_NNACL_FLATTEN_INFER_H +#ifndef MINDSPORE_NNACL_FLATTEN_INFER_H +#define MINDSPORE_NNACL_FLATTEN_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FlattenInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FLATTEN_INFER_H +#endif // MINDSPORE_NNACL_FLATTEN_INFER_H diff --git a/mindspore/lite/nnacl/infer/full_connection_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/full_connection_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/full_connection_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/full_connection_infer.c diff --git a/mindspore/lite/nnacl/infer/full_connection_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/full_connection_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/full_connection_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/full_connection_infer.h index dc3ef3cfa85..68cc05a5a37 100644 --- a/mindspore/lite/nnacl/infer/full_connection_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/full_connection_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FULL_CONNECTION_INFER_H -#define MINDSPORE_LITE_NNACL_FULL_CONNECTION_INFER_H +#ifndef MINDSPORE_NNACL_FULL_CONNECTION_INFER_H +#define MINDSPORE_NNACL_FULL_CONNECTION_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/matmul_parameter.h" @@ -29,4 +29,4 @@ int FullConnectionInferShape(const TensorC *const *inputs, size_t inputs_size, T #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FULL_CONNECTION_INFER_H +#endif // MINDSPORE_NNACL_FULL_CONNECTION_INFER_H diff --git a/mindspore/lite/nnacl/infer/fused_batchnorm_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fused_batchnorm_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/fused_batchnorm_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fused_batchnorm_infer.c diff --git a/mindspore/lite/nnacl/infer/fused_batchnorm_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fused_batchnorm_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/fused_batchnorm_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fused_batchnorm_infer.h index a90de7f4593..5d6ccd2f6e7 100644 --- a/mindspore/lite/nnacl/infer/fused_batchnorm_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/fused_batchnorm_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_FUSED_BATCHNORM_INFER_H -#define MINDSPORE_LITE_NNACL_FUSED_BATCHNORM_INFER_H +#ifndef MINDSPORE_NNACL_FUSED_BATCHNORM_INFER_H +#define MINDSPORE_NNACL_FUSED_BATCHNORM_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int FusedBatchNormInferShape(const TensorC *const *inputs, size_t inputs_size, T #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_FUSED_BATCHNORM_INFER_H +#endif // MINDSPORE_NNACL_FUSED_BATCHNORM_INFER_H diff --git a/mindspore/lite/nnacl/infer/gather_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/gather_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_infer.c diff --git a/mindspore/lite/nnacl/infer/gather_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/gather_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_infer.h index b83028addb6..0c4d763c6b7 100644 --- a/mindspore/lite/nnacl/infer/gather_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GATHER_INFER_H -#define MINDSPORE_LITE_NNACL_GATHER_INFER_H +#ifndef MINDSPORE_NNACL_GATHER_INFER_H +#define MINDSPORE_NNACL_GATHER_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/gather_parameter.h" @@ -29,4 +29,4 @@ int GatherInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_GATHER_INFER_H +#endif // MINDSPORE_NNACL_GATHER_INFER_H diff --git a/mindspore/lite/nnacl/infer/gather_nd_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_nd_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/gather_nd_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_nd_infer.c diff --git a/mindspore/lite/nnacl/infer/gather_nd_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_nd_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/gather_nd_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_nd_infer.h index 69c804f1d08..cd90d84bedc 100644 --- a/mindspore/lite/nnacl/infer/gather_nd_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gather_nd_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GATHER_ND_INFER_H -#define MINDSPORE_LITE_NNACL_GATHER_ND_INFER_H +#ifndef MINDSPORE_NNACL_GATHER_ND_INFER_H +#define MINDSPORE_NNACL_GATHER_ND_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/gatherNd_fp32.h" @@ -29,4 +29,4 @@ int GatherNdInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_GATHER_ND_INFER_H +#endif // MINDSPORE_NNACL_GATHER_ND_INFER_H diff --git a/mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/group_conv2d_grad_input_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/group_conv2d_grad_input_infer.c diff --git a/mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/group_conv2d_grad_input_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/group_conv2d_grad_input_infer.h index 672924a092f..e9cf4448753 100644 --- a/mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/group_conv2d_grad_input_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H -#define MINDSPORE_LITE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H +#ifndef MINDSPORE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H +#define MINDSPORE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/conv_parameter.h" @@ -29,4 +29,4 @@ int GroupConv2dGradInputInferShape(const TensorC *const *inputs, size_t inputs_s #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H +#endif // MINDSPORE_NNACL_GROUP_CONV2D_GRAD_INPUT_INFER_H diff --git a/mindspore/lite/nnacl/infer/gru_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gru_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/gru_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gru_infer.c diff --git a/mindspore/lite/nnacl/infer/gru_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gru_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/gru_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gru_infer.h index 448c49ca944..14fc084aaac 100644 --- a/mindspore/lite/nnacl/infer/gru_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/gru_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_GRU_INFER_H -#define MINDSPORE_LITE_NNACL_GRU_INFER_H +#ifndef MINDSPORE_NNACL_GRU_INFER_H +#define MINDSPORE_NNACL_GRU_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/gru_parameter.h" @@ -29,4 +29,4 @@ int GruInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **ou #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_GRU_INFER_H +#endif // MINDSPORE_NNACL_GRU_INFER_H diff --git a/mindspore/lite/nnacl/infer/hashtable_lookup_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/hashtable_lookup_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/hashtable_lookup_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/hashtable_lookup_infer.c diff --git a/mindspore/lite/nnacl/infer/hashtable_lookup_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/hashtable_lookup_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/hashtable_lookup_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/hashtable_lookup_infer.h index 304e97a3e2a..7e0c0349725 100644 --- a/mindspore/lite/nnacl/infer/hashtable_lookup_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/hashtable_lookup_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_HASHTABLE_LOOKUP_INFER_H -#define MINDSPORE_LITE_NNACL_HASHTABLE_LOOKUP_INFER_H +#ifndef MINDSPORE_NNACL_HASHTABLE_LOOKUP_INFER_H +#define MINDSPORE_NNACL_HASHTABLE_LOOKUP_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int HashtableLoopupInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_HASHTABLE_LOOKUP_INFER_H +#endif // MINDSPORE_NNACL_HASHTABLE_LOOKUP_INFER_H diff --git a/mindspore/lite/nnacl/infer/infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer.h index ba89bedbae2..cac96219734 100644 --- a/mindspore/lite/nnacl/infer/infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_INFER_H_ +#define MINDSPORE_NNACL_INFER_INFER_H_ #include "nnacl/tensor_c.h" #include "nnacl/op_base.h" @@ -30,4 +30,4 @@ InferShape GetInferFunc(int prim_type); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/infer_register.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.c similarity index 100% rename from mindspore/lite/nnacl/infer/infer_register.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.c diff --git a/mindspore/lite/nnacl/infer/infer_register.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.h similarity index 97% rename from mindspore/lite/nnacl/infer/infer_register.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.h index 8d66b12b284..e968ba15c2d 100644 --- a/mindspore/lite/nnacl/infer/infer_register.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_INFER_REGISTER_H_ -#define MINDSPORE_LITE_NNACL_INFER_INFER_REGISTER_H_ +#ifndef MINDSPORE_NNACL_INFER_INFER_REGISTER_H_ +#define MINDSPORE_NNACL_INFER_INFER_REGISTER_H_ #include "nnacl/tensor_c.h" #include "nnacl/op_base.h" @@ -230,4 +230,4 @@ void RegInfer(int prim_type, InferShape func); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_INFER_REGISTER_H_ +#endif // MINDSPORE_NNACL_INFER_INFER_REGISTER_H_ diff --git a/mindspore/lite/nnacl/infer/invert_permutation_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/invert_permutation_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/invert_permutation_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/invert_permutation_infer.c diff --git a/mindspore/lite/nnacl/infer/invert_permutation_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/invert_permutation_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/invert_permutation_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/invert_permutation_infer.h index fb2f71a9bb3..580ba06fbc7 100644 --- a/mindspore/lite/nnacl/infer/invert_permutation_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/invert_permutation_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_INFER_H -#define MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_INFER_H +#ifndef MINDSPORE_NNACL_INVERT_PERMUTATION_INFER_H +#define MINDSPORE_NNACL_INVERT_PERMUTATION_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int InvertPermutationInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INVERT_PERMUTATION_INFER_H +#endif // MINDSPORE_NNACL_INVERT_PERMUTATION_INFER_H diff --git a/mindspore/lite/nnacl/infer/layer_norm_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/layer_norm_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/layer_norm_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_grad_infer.h similarity index 82% rename from mindspore/lite/nnacl/infer/layer_norm_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_grad_infer.h index 0e61a1c86c1..d554b3cd486 100644 --- a/mindspore/lite/nnacl/infer/layer_norm_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ +#define MINDSPORE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int LayerNormGradInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_LAYER_NORM_GRAD_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/layer_norm_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/layer_norm_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_infer.c diff --git a/mindspore/lite/nnacl/infer/layer_norm_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/layer_norm_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_infer.h index bbc87f7db6b..03fdc429360 100644 --- a/mindspore/lite/nnacl/infer/layer_norm_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/layer_norm_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LAYER_NORM_INFER_H -#define MINDSPORE_LITE_NNACL_LAYER_NORM_INFER_H +#ifndef MINDSPORE_NNACL_LAYER_NORM_INFER_H +#define MINDSPORE_NNACL_LAYER_NORM_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/layer_norm_parameter.h" @@ -29,4 +29,4 @@ int LayerNormInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_LAYER_NORM_INFER_H +#endif // MINDSPORE_NNACL_LAYER_NORM_INFER_H diff --git a/mindspore/lite/nnacl/infer/lin_space_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lin_space_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/lin_space_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lin_space_infer.c diff --git a/mindspore/lite/nnacl/infer/lin_space_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lin_space_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/lin_space_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lin_space_infer.h index 05680409144..18a0d015d59 100644 --- a/mindspore/lite/nnacl/infer/lin_space_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lin_space_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LIN_SPACE_INFER_H -#define MINDSPORE_LITE_NNACL_LIN_SPACE_INFER_H +#ifndef MINDSPORE_NNACL_LIN_SPACE_INFER_H +#define MINDSPORE_NNACL_LIN_SPACE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int LinSpaceInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_LIN_SPACE_INFER_H +#endif // MINDSPORE_NNACL_LIN_SPACE_INFER_H diff --git a/mindspore/lite/nnacl/infer/log_softmax_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/log_softmax_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/log_softmax_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/log_softmax_infer.c diff --git a/mindspore/lite/nnacl/infer/log_softmax_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/log_softmax_infer.h similarity index 100% rename from mindspore/lite/nnacl/infer/log_softmax_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/log_softmax_infer.h diff --git a/mindspore/lite/nnacl/infer/lsh_projection_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lsh_projection_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/lsh_projection_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lsh_projection_infer.c diff --git a/mindspore/lite/nnacl/infer/lsh_projection_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lsh_projection_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/lsh_projection_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lsh_projection_infer.h index ffba1443f8c..24017cf7932 100644 --- a/mindspore/lite/nnacl/infer/lsh_projection_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lsh_projection_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LSH_PROJECTION_INFER_H -#define MINDSPORE_LITE_NNACL_LSH_PROJECTION_INFER_H +#ifndef MINDSPORE_NNACL_LSH_PROJECTION_INFER_H +#define MINDSPORE_NNACL_LSH_PROJECTION_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/lsh_projection_parameter.h" @@ -29,4 +29,4 @@ int LshProjectionInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_LSH_PROJECTION_INFER_H +#endif // MINDSPORE_NNACL_LSH_PROJECTION_INFER_H diff --git a/mindspore/lite/nnacl/infer/lstm_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lstm_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/lstm_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lstm_infer.c diff --git a/mindspore/lite/nnacl/infer/lstm_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lstm_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/lstm_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lstm_infer.h index ea51f01b282..c361619cd1b 100644 --- a/mindspore/lite/nnacl/infer/lstm_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/lstm_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LSTM_INFER_H -#define MINDSPORE_LITE_NNACL_LSTM_INFER_H +#ifndef MINDSPORE_NNACL_LSTM_INFER_H +#define MINDSPORE_NNACL_LSTM_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/lstm_fp32.h" @@ -29,4 +29,4 @@ int LstmInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_LSTM_INFER_H +#endif // MINDSPORE_NNACL_LSTM_INFER_H diff --git a/mindspore/lite/nnacl/infer/matmul_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/matmul_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/matmul_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/matmul_infer.c diff --git a/mindspore/lite/nnacl/infer/matmul_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/matmul_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/matmul_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/matmul_infer.h index 9091f4e0f4a..55f6b048b1e 100644 --- a/mindspore/lite/nnacl/infer/matmul_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/matmul_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MATMUL_INFER_H -#define MINDSPORE_LITE_NNACL_MATMUL_INFER_H +#ifndef MINDSPORE_NNACL_MATMUL_INFER_H +#define MINDSPORE_NNACL_MATMUL_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/matmul_parameter.h" @@ -29,4 +29,4 @@ int MatmulInferShape(const TensorC *const *const inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_MATMUL_INFER_H +#endif // MINDSPORE_NNACL_MATMUL_INFER_H diff --git a/mindspore/lite/nnacl/infer/max_min_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/max_min_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/max_min_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/max_min_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/max_min_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/max_min_grad_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/max_min_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/max_min_grad_infer.h index 91fc83ee4fc..5a12f49dc42 100644 --- a/mindspore/lite/nnacl/infer/max_min_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/max_min_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ +#define MINDSPORE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int MaxMinGradInferShape(const TensorC *const *inputs, size_t inputs_size, Tenso #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_MAX_MIN_GRAD_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/mean_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mean_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/mean_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mean_infer.c diff --git a/mindspore/lite/nnacl/infer/mean_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mean_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/mean_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mean_infer.h index ab83182eb81..293076c4af2 100644 --- a/mindspore/lite/nnacl/infer/mean_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mean_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MEAN_INFER_H -#define MINDSPORE_LITE_NNACL_MEAN_INFER_H +#ifndef MINDSPORE_NNACL_MEAN_INFER_H +#define MINDSPORE_NNACL_MEAN_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/reduce_parameter.h" @@ -29,4 +29,4 @@ int MeanInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_MEAN_INFER_H +#endif // MINDSPORE_NNACL_MEAN_INFER_H diff --git a/mindspore/lite/nnacl/infer/merge_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/merge_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/merge_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/merge_infer.c diff --git a/mindspore/lite/nnacl/infer/merge_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/merge_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/merge_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/merge_infer.h index 1437e5439bc..372138d0f18 100644 --- a/mindspore/lite/nnacl/infer/merge_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/merge_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MERGE_INFER_H -#define MINDSPORE_LITE_NNACL_MERGE_INFER_H +#ifndef MINDSPORE_NNACL_MERGE_INFER_H +#define MINDSPORE_NNACL_MERGE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int MergeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_MERGE_INFER_H +#endif // MINDSPORE_NNACL_MERGE_INFER_H diff --git a/mindspore/lite/nnacl/infer/mfcc_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mfcc_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/mfcc_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mfcc_infer.c diff --git a/mindspore/lite/nnacl/infer/mfcc_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mfcc_infer.h similarity index 88% rename from mindspore/lite/nnacl/infer/mfcc_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mfcc_infer.h index 358deb46a99..5f7b4b0bc5f 100644 --- a/mindspore/lite/nnacl/infer/mfcc_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/mfcc_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MFCC_INFER_H -#define MINDSPORE_LITE_NNACL_MFCC_INFER_H +#ifndef MINDSPORE_NNACL_MFCC_INFER_H +#define MINDSPORE_NNACL_MFCC_INFER_H #include "nnacl/infer/common_infer.h" @@ -33,4 +33,4 @@ int MfccInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_MFCC_INFER_H +#endif // MINDSPORE_NNACL_MFCC_INFER_H diff --git a/mindspore/lite/nnacl/infer/non_max_suppression_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/non_max_suppression_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/non_max_suppression_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/non_max_suppression_infer.c diff --git a/mindspore/lite/nnacl/infer/non_max_suppression_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/non_max_suppression_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/non_max_suppression_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/non_max_suppression_infer.h index bb0cc24d1af..19575888dd7 100644 --- a/mindspore/lite/nnacl/infer/non_max_suppression_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/non_max_suppression_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_INFER_H -#define MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_INFER_H +#ifndef MINDSPORE_NNACL_NON_MAX_SUPPRESSION_INFER_H +#define MINDSPORE_NNACL_NON_MAX_SUPPRESSION_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int NonMaxSuppressionInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_INFER_H +#endif // MINDSPORE_NNACL_NON_MAX_SUPPRESSION_INFER_H diff --git a/mindspore/lite/nnacl/infer/one_hot_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/one_hot_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/one_hot_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/one_hot_infer.c diff --git a/mindspore/lite/nnacl/infer/one_hot_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/one_hot_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/one_hot_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/one_hot_infer.h index 3e0305e1585..b5ed83ec0a4 100644 --- a/mindspore/lite/nnacl/infer/one_hot_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/one_hot_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ONE_HOT_INFER_H -#define MINDSPORE_LITE_NNACL_ONE_HOT_INFER_H +#ifndef MINDSPORE_NNACL_ONE_HOT_INFER_H +#define MINDSPORE_NNACL_ONE_HOT_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/one_hot_fp32.h" @@ -29,4 +29,4 @@ int OneHotInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ONE_HOT_INFER_H +#endif // MINDSPORE_NNACL_ONE_HOT_INFER_H diff --git a/mindspore/lite/nnacl/infer/pad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/pad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pad_infer.c diff --git a/mindspore/lite/nnacl/infer/pad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pad_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/pad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pad_infer.h index b97bea4b52b..e277b9865ef 100644 --- a/mindspore/lite/nnacl/infer/pad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PAD_INFER_H -#define MINDSPORE_LITE_NNACL_PAD_INFER_H +#ifndef MINDSPORE_NNACL_PAD_INFER_H +#define MINDSPORE_NNACL_PAD_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/pad_parameter.h" @@ -29,4 +29,4 @@ int PadInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **ou #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_PAD_INFER_H +#endif // MINDSPORE_NNACL_PAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/partial_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/partial_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/partial_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/partial_infer.c diff --git a/mindspore/lite/nnacl/infer/partial_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/partial_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/partial_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/partial_infer.h index 7d9adbe8ca7..f4a9702956d 100644 --- a/mindspore/lite/nnacl/infer/partial_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/partial_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PARTIAL_INFER_H -#define MINDSPORE_LITE_NNACL_PARTIAL_INFER_H +#ifndef MINDSPORE_NNACL_PARTIAL_INFER_H +#define MINDSPORE_NNACL_PARTIAL_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int PartialInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_PARTIAL_INFER_H +#endif // MINDSPORE_NNACL_PARTIAL_INFER_H diff --git a/mindspore/lite/nnacl/infer/pooling_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/pooling_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/pooling_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_grad_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/pooling_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_grad_infer.h index d8104f35e80..016ece352b1 100644 --- a/mindspore/lite/nnacl/infer/pooling_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_POOLING_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_POOLING_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_POOLING_GRAD_INFER_H +#define MINDSPORE_NNACL_POOLING_GRAD_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/pooling_parameter.h" @@ -29,4 +29,4 @@ int PoolingGradInferShape(const TensorC *const *inputs, size_t inputs_size, Tens #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_POOLING_GRAD_INFER_H +#endif // MINDSPORE_NNACL_POOLING_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/pooling_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/pooling_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_infer.c diff --git a/mindspore/lite/nnacl/infer/pooling_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/pooling_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_infer.h index 1f30eeaebb9..c4a9369b589 100644 --- a/mindspore/lite/nnacl/infer/pooling_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/pooling_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_POOLING_INFER_H -#define MINDSPORE_LITE_NNACL_POOLING_INFER_H +#ifndef MINDSPORE_NNACL_POOLING_INFER_H +#define MINDSPORE_NNACL_POOLING_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/pooling_parameter.h" @@ -29,4 +29,4 @@ int PoolingInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_POOLING_INFER_H +#endif // MINDSPORE_NNACL_POOLING_INFER_H diff --git a/mindspore/lite/nnacl/infer/power_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/power_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/power_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/power_infer.c diff --git a/mindspore/lite/nnacl/infer/power_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/power_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/power_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/power_infer.h index 10823b6ee41..23ca5145629 100644 --- a/mindspore/lite/nnacl/infer/power_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/power_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_POWER_INFER_H -#define MINDSPORE_LITE_NNACL_POWER_INFER_H +#ifndef MINDSPORE_NNACL_POWER_INFER_H +#define MINDSPORE_NNACL_POWER_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/power_parameter.h" @@ -29,4 +29,4 @@ int PowerInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_POWER_INFER_H +#endif // MINDSPORE_NNACL_POWER_INFER_H diff --git a/mindspore/lite/nnacl/infer/prior_box_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/prior_box_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/prior_box_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/prior_box_infer.c diff --git a/mindspore/lite/nnacl/infer/prior_box_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/prior_box_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/prior_box_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/prior_box_infer.h index 18034852637..80b5af6db81 100644 --- a/mindspore/lite/nnacl/infer/prior_box_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/prior_box_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PRIOR_BOX_INFER_H -#define MINDSPORE_LITE_NNACL_PRIOR_BOX_INFER_H +#ifndef MINDSPORE_NNACL_PRIOR_BOX_INFER_H +#define MINDSPORE_NNACL_PRIOR_BOX_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/prior_box_parameter.h" @@ -29,4 +29,4 @@ int PriorBoxInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_PRIOR_BOX_INFER_H +#endif // MINDSPORE_NNACL_PRIOR_BOX_INFER_H diff --git a/mindspore/lite/nnacl/infer/quant_dtype_cast_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/quant_dtype_cast_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/quant_dtype_cast_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/quant_dtype_cast_infer.c diff --git a/mindspore/lite/nnacl/infer/quant_dtype_cast_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/quant_dtype_cast_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/quant_dtype_cast_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/quant_dtype_cast_infer.h index 8357fec3155..bf854ba717a 100644 --- a/mindspore/lite/nnacl/infer/quant_dtype_cast_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/quant_dtype_cast_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_QUANT_DTYPE_CAST_INFER_H -#define MINDSPORE_LITE_NNACL_QUANT_DTYPE_CAST_INFER_H +#ifndef MINDSPORE_NNACL_QUANT_DTYPE_CAST_INFER_H +#define MINDSPORE_NNACL_QUANT_DTYPE_CAST_INFER_H #include "nnacl/infer/common_infer.h" @@ -34,4 +34,4 @@ int QuantDtypeCastInferShape(const TensorC *const *inputs, size_t inputs_size, T #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_QUANT_DTYPE_CAST_INFER_H +#endif // MINDSPORE_NNACL_QUANT_DTYPE_CAST_INFER_H diff --git a/mindspore/lite/nnacl/infer/random_standard_normal_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/random_standard_normal_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/random_standard_normal_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/random_standard_normal_infer.c diff --git a/mindspore/lite/nnacl/infer/random_standard_normal_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/random_standard_normal_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/random_standard_normal_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/random_standard_normal_infer.h index d91ba863ce0..f769e4b9c2e 100644 --- a/mindspore/lite/nnacl/infer/random_standard_normal_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/random_standard_normal_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H -#define MINDSPORE_LITE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H +#ifndef MINDSPORE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H +#define MINDSPORE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int RandomStandardNormalInferShape(const TensorC *const *inputs, size_t inputs_s #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H +#endif // MINDSPORE_NNACL_RANDOM_STANDARD_NORMAL_INFER_H diff --git a/mindspore/lite/nnacl/infer/range_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/range_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/range_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/range_infer.c diff --git a/mindspore/lite/nnacl/infer/range_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/range_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/range_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/range_infer.h index c52e8cc4064..8ee07f50ea9 100644 --- a/mindspore/lite/nnacl/infer/range_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/range_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RANGE_INFER_H -#define MINDSPORE_LITE_NNACL_RANGE_INFER_H +#ifndef MINDSPORE_NNACL_RANGE_INFER_H +#define MINDSPORE_NNACL_RANGE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/range_fp32.h" @@ -29,4 +29,4 @@ int RangeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RANGE_INFER_H +#endif // MINDSPORE_NNACL_RANGE_INFER_H diff --git a/mindspore/lite/nnacl/infer/rank_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rank_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/rank_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rank_infer.c diff --git a/mindspore/lite/nnacl/infer/rank_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rank_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/rank_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rank_infer.h index ce162ed35b1..ab2d8af3c7a 100644 --- a/mindspore/lite/nnacl/infer/rank_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rank_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RANK_INFER_H -#define MINDSPORE_LITE_NNACL_RANK_INFER_H +#ifndef MINDSPORE_NNACL_RANK_INFER_H +#define MINDSPORE_NNACL_RANK_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int RankInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RANK_INFER_H +#endif // MINDSPORE_NNACL_RANK_INFER_H diff --git a/mindspore/lite/nnacl/infer/reduce_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reduce_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/reduce_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reduce_infer.c diff --git a/mindspore/lite/nnacl/infer/reduce_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reduce_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/reduce_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reduce_infer.h index 8bec1eb2ba2..abe278b2533 100644 --- a/mindspore/lite/nnacl/infer/reduce_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reduce_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_REDUCE_INFER_H -#define MINDSPORE_LITE_NNACL_REDUCE_INFER_H +#ifndef MINDSPORE_NNACL_REDUCE_INFER_H +#define MINDSPORE_NNACL_REDUCE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/reduce_parameter.h" @@ -29,4 +29,4 @@ int ReduceInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_REDUCE_INFER_H +#endif // MINDSPORE_NNACL_REDUCE_INFER_H diff --git a/mindspore/lite/nnacl/infer/reshape_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reshape_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/reshape_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reshape_infer.c diff --git a/mindspore/lite/nnacl/infer/reshape_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reshape_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/reshape_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reshape_infer.h index adc01b9dac4..484eecdcc21 100644 --- a/mindspore/lite/nnacl/infer/reshape_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/reshape_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RESHAPE_INFER_H -#define MINDSPORE_LITE_NNACL_RESHAPE_INFER_H +#ifndef MINDSPORE_NNACL_RESHAPE_INFER_H +#define MINDSPORE_NNACL_RESHAPE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/reshape_parameter.h" @@ -29,4 +29,4 @@ int ReshapeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RESHAPE_INFER_H +#endif // MINDSPORE_NNACL_RESHAPE_INFER_H diff --git a/mindspore/lite/nnacl/infer/resize_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/resize_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/resize_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/resize_infer.c diff --git a/mindspore/lite/nnacl/infer/resize_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/resize_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/resize_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/resize_infer.h index 50ad390ab6c..aeef0a69e18 100644 --- a/mindspore/lite/nnacl/infer/resize_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/resize_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RESIZE_INFER_H -#define MINDSPORE_LITE_NNACL_RESIZE_INFER_H +#ifndef MINDSPORE_NNACL_RESIZE_INFER_H +#define MINDSPORE_NNACL_RESIZE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/resize_parameter.h" @@ -29,4 +29,4 @@ int ResizeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RESIZE_INFER_H +#endif // MINDSPORE_NNACL_RESIZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/rfft_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rfft_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/rfft_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rfft_infer.c diff --git a/mindspore/lite/nnacl/infer/rfft_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rfft_infer.h similarity index 88% rename from mindspore/lite/nnacl/infer/rfft_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rfft_infer.h index c430cb342b4..19ef61ffee7 100644 --- a/mindspore/lite/nnacl/infer/rfft_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/rfft_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RFFT_INFER_H -#define MINDSPORE_LITE_NNACL_RFFT_INFER_H +#ifndef MINDSPORE_NNACL_RFFT_INFER_H +#define MINDSPORE_NNACL_RFFT_INFER_H #include "nnacl/infer/common_infer.h" @@ -33,4 +33,4 @@ int RfftInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_RFFT_INFER_H +#endif // MINDSPORE_NNACL_RFFT_INFER_H diff --git a/mindspore/lite/nnacl/infer/roi_pooling_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/roi_pooling_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/roi_pooling_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/roi_pooling_infer.c diff --git a/mindspore/lite/nnacl/infer/roi_pooling_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/roi_pooling_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/roi_pooling_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/roi_pooling_infer.h index 7fb99468c09..4f730eb64bd 100644 --- a/mindspore/lite/nnacl/infer/roi_pooling_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/roi_pooling_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ROI_POOLING_INFER_H -#define MINDSPORE_LITE_NNACL_ROI_POOLING_INFER_H +#ifndef MINDSPORE_NNACL_ROI_POOLING_INFER_H +#define MINDSPORE_NNACL_ROI_POOLING_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/roi_pooling_fp32.h" @@ -29,4 +29,4 @@ int ROIPoolingInferShape(const TensorC *const *inputs, size_t inputs_size, Tenso #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_ROI_POOLING_INFER_H +#endif // MINDSPORE_NNACL_ROI_POOLING_INFER_H diff --git a/mindspore/lite/nnacl/infer/scatter_nd_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/scatter_nd_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/scatter_nd_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/scatter_nd_infer.c diff --git a/mindspore/lite/nnacl/infer/scatter_nd_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/scatter_nd_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/scatter_nd_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/scatter_nd_infer.h index 5ee5acdaada..699405e831f 100644 --- a/mindspore/lite/nnacl/infer/scatter_nd_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/scatter_nd_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SCATTER_ND_INFER_H -#define MINDSPORE_LITE_NNACL_SCATTER_ND_INFER_H +#ifndef MINDSPORE_NNACL_SCATTER_ND_INFER_H +#define MINDSPORE_NNACL_SCATTER_ND_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int ScatterNdInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SCATTER_ND_INFER_H +#endif // MINDSPORE_NNACL_SCATTER_ND_INFER_H diff --git a/mindspore/lite/nnacl/infer/select_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/select_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/select_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/select_infer.c diff --git a/mindspore/lite/nnacl/infer/select_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/select_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/select_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/select_infer.h index 1b95ebf8309..0f94c22e8d4 100644 --- a/mindspore/lite/nnacl/infer/select_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/select_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SELECT_INFER_H -#define MINDSPORE_LITE_NNACL_SELECT_INFER_H +#ifndef MINDSPORE_NNACL_SELECT_INFER_H +#define MINDSPORE_NNACL_SELECT_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SelectInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SELECT_INFER_H +#endif // MINDSPORE_NNACL_SELECT_INFER_H diff --git a/mindspore/lite/nnacl/infer/sgd_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sgd_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/sgd_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sgd_infer.c diff --git a/mindspore/lite/nnacl/infer/sgd_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sgd_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/sgd_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sgd_infer.h index 8d47efdcda8..cb32363bce0 100644 --- a/mindspore/lite/nnacl/infer/sgd_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sgd_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SGD_INFER_H -#define MINDSPORE_LITE_NNACL_SGD_INFER_H +#ifndef MINDSPORE_NNACL_SGD_INFER_H +#define MINDSPORE_NNACL_SGD_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SgdInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **ou #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SGD_INFER_H +#endif // MINDSPORE_NNACL_SGD_INFER_H diff --git a/mindspore/lite/nnacl/infer/shape_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/shape_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/shape_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/shape_infer.c diff --git a/mindspore/lite/nnacl/infer/shape_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/shape_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/shape_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/shape_infer.h index 30be218bc64..99dd285b9a8 100644 --- a/mindspore/lite/nnacl/infer/shape_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/shape_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SHAPE_INFER_H -#define MINDSPORE_LITE_NNACL_SHAPE_INFER_H +#ifndef MINDSPORE_NNACL_SHAPE_INFER_H +#define MINDSPORE_NNACL_SHAPE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int ShapeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SHAPE_INFER_H +#endif // MINDSPORE_NNACL_SHAPE_INFER_H diff --git a/mindspore/lite/nnacl/infer/size_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/size_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/size_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/size_infer.c diff --git a/mindspore/lite/nnacl/infer/size_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/size_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/size_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/size_infer.h index b299c0e1ade..23481b69203 100644 --- a/mindspore/lite/nnacl/infer/size_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/size_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SIZE_INFER_H -#define MINDSPORE_LITE_NNACL_SIZE_INFER_H +#ifndef MINDSPORE_NNACL_SIZE_INFER_H +#define MINDSPORE_NNACL_SIZE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SizeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SIZE_INFER_H +#endif // MINDSPORE_NNACL_SIZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/skip_gram_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/skip_gram_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/skip_gram_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/skip_gram_infer.c diff --git a/mindspore/lite/nnacl/infer/skip_gram_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/skip_gram_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/skip_gram_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/skip_gram_infer.h index 6b54fc1c9a3..7af14f57ff2 100644 --- a/mindspore/lite/nnacl/infer/skip_gram_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/skip_gram_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SKIP_GRAM_INFER_H -#define MINDSPORE_LITE_NNACL_SKIP_GRAM_INFER_H +#ifndef MINDSPORE_NNACL_SKIP_GRAM_INFER_H +#define MINDSPORE_NNACL_SKIP_GRAM_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SkipGramInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SKIP_GRAM_INFER_H +#endif // MINDSPORE_NNACL_SKIP_GRAM_INFER_H diff --git a/mindspore/lite/nnacl/infer/slice_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/slice_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/slice_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/slice_infer.c diff --git a/mindspore/lite/nnacl/infer/slice_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/slice_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/slice_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/slice_infer.h index 0aa3f79ce33..50e06cd4872 100644 --- a/mindspore/lite/nnacl/infer/slice_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/slice_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SLICE_INFER_H -#define MINDSPORE_LITE_NNACL_SLICE_INFER_H +#ifndef MINDSPORE_NNACL_SLICE_INFER_H +#define MINDSPORE_NNACL_SLICE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/slice_parameter.h" @@ -29,4 +29,4 @@ int SliceInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SLICE_INFER_H +#endif // MINDSPORE_NNACL_SLICE_INFER_H diff --git a/mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_cross_entropy_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_cross_entropy_infer.c diff --git a/mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_cross_entropy_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_cross_entropy_infer.h index b66aa8d7ef8..c5d89519ef8 100644 --- a/mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_cross_entropy_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SOFTMAX_CROSS_ENTROPY_INFER_H -#define MINDSPORE_LITE_NNACL_SOFTMAX_CROSS_ENTROPY_INFER_H +#ifndef MINDSPORE_NNACL_SOFTMAX_CROSS_ENTROPY_INFER_H +#define MINDSPORE_NNACL_SOFTMAX_CROSS_ENTROPY_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SoftmaxCrossEntropyInferShape(const TensorC *const *inputs, size_t inputs_si #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SOFTMAX_ENTROPY_INFER_H +#endif // MINDSPORE_NNACL_SOFTMAX_ENTROPY_INFER_H diff --git a/mindspore/lite/nnacl/infer/softmax_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/softmax_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_infer.c diff --git a/mindspore/lite/nnacl/infer/softmax_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/softmax_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_infer.h index ba22743fea9..9ce561666f9 100644 --- a/mindspore/lite/nnacl/infer/softmax_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/softmax_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SOFTMAX_INFER_H -#define MINDSPORE_LITE_NNACL_SOFTMAX_INFER_H +#ifndef MINDSPORE_NNACL_SOFTMAX_INFER_H +#define MINDSPORE_NNACL_SOFTMAX_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int SoftMaxInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SOFTMAX_INFER_H +#endif // MINDSPORE_NNACL_SOFTMAX_INFER_H diff --git a/mindspore/lite/nnacl/infer/space_to_batch_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/space_to_batch_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_infer.c diff --git a/mindspore/lite/nnacl/infer/space_to_batch_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/space_to_batch_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_infer.h index e6e87432226..393a958c683 100644 --- a/mindspore/lite/nnacl/infer/space_to_batch_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_INFER_H -#define MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_INFER_H +#ifndef MINDSPORE_NNACL_SPACE_TO_BATCH_INFER_H +#define MINDSPORE_NNACL_SPACE_TO_BATCH_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/space_to_batch_fp32.h" @@ -29,4 +29,4 @@ int SpaceToBatchInferShape(const TensorC *const *inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_INFER_H +#endif // MINDSPORE_NNACL_SPACE_TO_BATCH_INFER_H diff --git a/mindspore/lite/nnacl/infer/space_to_batch_nd_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_nd_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/space_to_batch_nd_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_nd_infer.c diff --git a/mindspore/lite/nnacl/infer/space_to_batch_nd_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_nd_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/space_to_batch_nd_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_nd_infer.h index c8bc25e2c4c..d63b46d4805 100644 --- a/mindspore/lite/nnacl/infer/space_to_batch_nd_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_batch_nd_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_ND_INFER_H -#define MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_ND_INFER_H +#ifndef MINDSPORE_NNACL_SPACE_TO_BATCH_ND_INFER_H +#define MINDSPORE_NNACL_SPACE_TO_BATCH_ND_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/space_to_batch_fp32.h" @@ -29,4 +29,4 @@ int SpaceToBatchNdInferShape(const TensorC *const *inputs, size_t inputs_size, T #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SPACE_TO_BATCH_ND_INFER_H +#endif // MINDSPORE_NNACL_SPACE_TO_BATCH_ND_INFER_H diff --git a/mindspore/lite/nnacl/infer/space_to_depth_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_depth_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/space_to_depth_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_depth_infer.c diff --git a/mindspore/lite/nnacl/infer/space_to_depth_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_depth_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/space_to_depth_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_depth_infer.h index 65dfefdd2ea..809a637ccc2 100644 --- a/mindspore/lite/nnacl/infer/space_to_depth_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/space_to_depth_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPACE_TO_DEPTH_INFER_H -#define MINDSPORE_LITE_NNACL_SPACE_TO_DEPTH_INFER_H +#ifndef MINDSPORE_NNACL_SPACE_TO_DEPTH_INFER_H +#define MINDSPORE_NNACL_SPACE_TO_DEPTH_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/space_to_depth_parameter.h" @@ -29,4 +29,4 @@ int SpaceToDepthInferShape(const TensorC *const *inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SPACE_TO_DEPTH_INFER_H +#endif // MINDSPORE_NNACL_SPACE_TO_DEPTH_INFER_H diff --git a/mindspore/lite/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.c diff --git a/mindspore/lite/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h similarity index 78% rename from mindspore/lite/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h index 0908724ee52..614d1436afb 100644 --- a/mindspore/lite/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ +#define MINDSPORE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SparseSoftmaxCrossEntropyWithLogitsInferShape(const TensorC *const *inputs, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_SPARSE_SOFTMAX_CROSS_ENTROPY_WITH_LOGITS_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/sparse_to_dense_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_to_dense_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/sparse_to_dense_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_to_dense_infer.c diff --git a/mindspore/lite/nnacl/infer/sparse_to_dense_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_to_dense_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/sparse_to_dense_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_to_dense_infer.h index 1e274247e21..a520734e564 100644 --- a/mindspore/lite/nnacl/infer/sparse_to_dense_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/sparse_to_dense_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPACE_TO_DENSE_INFER_H -#define MINDSPORE_LITE_NNACL_SPACE_TO_DENSE_INFER_H +#ifndef MINDSPORE_NNACL_SPACE_TO_DENSE_INFER_H +#define MINDSPORE_NNACL_SPACE_TO_DENSE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int SparseToDenseInferShape(const TensorC *const *inputs, size_t inputs_size, Te #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SPACE_TO_DENSE_INFER_H +#endif // MINDSPORE_NNACL_SPACE_TO_DENSE_INFER_H diff --git a/mindspore/lite/nnacl/infer/splice_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/splice_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/splice_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/splice_infer.c diff --git a/mindspore/lite/nnacl/infer/splice_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/splice_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/splice_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/splice_infer.h index bb7584cc195..54b6d3a1e91 100644 --- a/mindspore/lite/nnacl/infer/splice_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/splice_infer.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INFER_SPLICE_INFER_H_ -#define MINDSPORE_LITE_NNACL_INFER_SPLICE_INFER_H_ +#ifndef MINDSPORE_NNACL_INFER_SPLICE_INFER_H_ +#define MINDSPORE_NNACL_INFER_SPLICE_INFER_H_ #include "nnacl/infer/common_infer.h" #include "nnacl/splice_parameter.h" @@ -29,4 +29,4 @@ int SpliceInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INFER_SPLICE_INFER_H_ +#endif // MINDSPORE_NNACL_INFER_SPLICE_INFER_H_ diff --git a/mindspore/lite/nnacl/infer/split_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/split_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/split_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/split_infer.c diff --git a/mindspore/lite/nnacl/infer/split_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/split_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/split_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/split_infer.h index 7745fd26cb4..67733fa841e 100644 --- a/mindspore/lite/nnacl/infer/split_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/split_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPLIT_INFER_H -#define MINDSPORE_LITE_NNACL_SPLIT_INFER_H +#ifndef MINDSPORE_NNACL_SPLIT_INFER_H +#define MINDSPORE_NNACL_SPLIT_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/split_parameter.h" @@ -29,4 +29,4 @@ int SplitInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SPLIT_INFER_H +#endif // MINDSPORE_NNACL_SPLIT_INFER_H diff --git a/mindspore/lite/nnacl/infer/squeeze_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/squeeze_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/squeeze_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/squeeze_infer.c diff --git a/mindspore/lite/nnacl/infer/squeeze_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/squeeze_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/squeeze_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/squeeze_infer.h index 9b7409ab28c..6505b573c91 100644 --- a/mindspore/lite/nnacl/infer/squeeze_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/squeeze_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SQUEEZE_INFER_H -#define MINDSPORE_LITE_NNACL_SQUEEZE_INFER_H +#ifndef MINDSPORE_NNACL_SQUEEZE_INFER_H +#define MINDSPORE_NNACL_SQUEEZE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/squeeze_parameter.h" @@ -29,4 +29,4 @@ int SqueezeInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SQUEEZE_INFER_H +#endif // MINDSPORE_NNACL_SQUEEZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/stack_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/stack_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/stack_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/stack_infer.c diff --git a/mindspore/lite/nnacl/infer/stack_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/stack_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/stack_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/stack_infer.h index 40e47158e5f..d50a0ccb68c 100644 --- a/mindspore/lite/nnacl/infer/stack_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/stack_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STACK_INFER_H -#define MINDSPORE_LITE_NNACL_STACK_INFER_H +#ifndef MINDSPORE_NNACL_STACK_INFER_H +#define MINDSPORE_NNACL_STACK_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/stack_parameter.h" @@ -29,4 +29,4 @@ int StackInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_STACK_INFER_H +#endif // MINDSPORE_NNACL_STACK_INFER_H diff --git a/mindspore/lite/nnacl/infer/strided_slice_grad_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_grad_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/strided_slice_grad_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_grad_infer.c diff --git a/mindspore/lite/nnacl/infer/strided_slice_grad_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_grad_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/strided_slice_grad_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_grad_infer.h index 9e4ed8ea56d..db252531242 100644 --- a/mindspore/lite/nnacl/infer/strided_slice_grad_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_grad_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STRIDED_SLICE_GRAD_INFER_H -#define MINDSPORE_LITE_NNACL_STRIDED_SLICE_GRAD_INFER_H +#ifndef MINDSPORE_NNACL_STRIDED_SLICE_GRAD_INFER_H +#define MINDSPORE_NNACL_STRIDED_SLICE_GRAD_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/strided_slice_parameter.h" @@ -29,4 +29,4 @@ int StridedSliceGradInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_STRIDED_SLICE_GRAD_INFER_H +#endif // MINDSPORE_NNACL_STRIDED_SLICE_GRAD_INFER_H diff --git a/mindspore/lite/nnacl/infer/strided_slice_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/strided_slice_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.c diff --git a/mindspore/lite/nnacl/infer/strided_slice_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/strided_slice_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.h index 1c9792eb43e..de3321b4441 100644 --- a/mindspore/lite/nnacl/infer/strided_slice_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STRIDED_SLICE_INFER_H -#define MINDSPORE_LITE_NNACL_STRIDED_SLICE_INFER_H +#ifndef MINDSPORE_NNACL_STRIDED_SLICE_INFER_H +#define MINDSPORE_NNACL_STRIDED_SLICE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/strided_slice_parameter.h" @@ -29,4 +29,4 @@ int StridedSliceInferShape(const TensorC *const *inputs, size_t inputs_size, Ten #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_STRIDED_SLICE_INFER_H +#endif // MINDSPORE_NNACL_STRIDED_SLICE_INFER_H diff --git a/mindspore/lite/nnacl/infer/switch_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/switch_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/switch_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/switch_infer.c diff --git a/mindspore/lite/nnacl/infer/switch_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/switch_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/switch_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/switch_infer.h index 673d1efa63d..bac22b3a16c 100644 --- a/mindspore/lite/nnacl/infer/switch_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/switch_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SWITCH_INFER_H -#define MINDSPORE_LITE_NNACL_SWITCH_INFER_H +#ifndef MINDSPORE_NNACL_SWITCH_INFER_H +#define MINDSPORE_NNACL_SWITCH_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/softmax_parameter.h" @@ -29,4 +29,4 @@ int SwitchInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_SWITCH_INFER_H +#endif // MINDSPORE_NNACL_SWITCH_INFER_H diff --git a/mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_fromtensor_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_fromtensor_infer.c diff --git a/mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_fromtensor_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_fromtensor_infer.h index 9ac106cc226..f9d9a091675 100644 --- a/mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_fromtensor_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_FROMTENSOR_INFER_H -#define MINDSPORE_LITE_NNACL_TENSORLIST_FROMTENSOR_INFER_H +#ifndef MINDSPORE_NNACL_TENSORLIST_FROMTENSOR_INFER_H +#define MINDSPORE_NNACL_TENSORLIST_FROMTENSOR_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int TensorListFromTensorInferShape(const TensorC *const *inputs, size_t inputs_s #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TENSORLIST_FROMTENSOR_INFER_H +#endif // MINDSPORE_NNACL_TENSORLIST_FROMTENSOR_INFER_H diff --git a/mindspore/lite/nnacl/infer/tensorlist_getitem_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_getitem_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tensorlist_getitem_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_getitem_infer.c diff --git a/mindspore/lite/nnacl/infer/tensorlist_getitem_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_getitem_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/tensorlist_getitem_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_getitem_infer.h index 663a626a04f..107fdd46e33 100644 --- a/mindspore/lite/nnacl/infer/tensorlist_getitem_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_getitem_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_GETITEM_INFER_H -#define MINDSPORE_LITE_NNACL_TENSORLIST_GETITEM_INFER_H +#ifndef MINDSPORE_NNACL_TENSORLIST_GETITEM_INFER_H +#define MINDSPORE_NNACL_TENSORLIST_GETITEM_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/tensorlist_parameter.h" @@ -29,4 +29,4 @@ int TensorListGetItemInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TENSORLIST_GETITEM_INFER_H +#endif // MINDSPORE_NNACL_TENSORLIST_GETITEM_INFER_H diff --git a/mindspore/lite/nnacl/infer/tensorlist_reserve_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_reserve_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tensorlist_reserve_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_reserve_infer.c diff --git a/mindspore/lite/nnacl/infer/tensorlist_reserve_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_reserve_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/tensorlist_reserve_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_reserve_infer.h index 4cd2c453e2e..f1c5ce4cd59 100644 --- a/mindspore/lite/nnacl/infer/tensorlist_reserve_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_reserve_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_RESERVE_INFER_H -#define MINDSPORE_LITE_NNACL_TENSORLIST_RESERVE_INFER_H +#ifndef MINDSPORE_NNACL_TENSORLIST_RESERVE_INFER_H +#define MINDSPORE_NNACL_TENSORLIST_RESERVE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int TensorListReserveInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TENSORLIST_RESERVE_INFER_H +#endif // MINDSPORE_NNACL_TENSORLIST_RESERVE_INFER_H diff --git a/mindspore/lite/nnacl/infer/tensorlist_setitem_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_setitem_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tensorlist_setitem_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_setitem_infer.c diff --git a/mindspore/lite/nnacl/infer/tensorlist_setitem_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_setitem_infer.h similarity index 83% rename from mindspore/lite/nnacl/infer/tensorlist_setitem_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_setitem_infer.h index d7b6b20d102..a73773c5d9a 100644 --- a/mindspore/lite/nnacl/infer/tensorlist_setitem_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_setitem_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_SETITEM_INFER_H -#define MINDSPORE_LITE_NNACL_TENSORLIST_SETITEM_INFER_H +#ifndef MINDSPORE_NNACL_TENSORLIST_SETITEM_INFER_H +#define MINDSPORE_NNACL_TENSORLIST_SETITEM_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int TensorListSetItemInferShape(const TensorC *const *inputs, size_t inputs_size #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TENSORLIST_SETITEM_INFER_H +#endif // MINDSPORE_NNACL_TENSORLIST_SETITEM_INFER_H diff --git a/mindspore/lite/nnacl/infer/tensorlist_stack_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_stack_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tensorlist_stack_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_stack_infer.c diff --git a/mindspore/lite/nnacl/infer/tensorlist_stack_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_stack_infer.h similarity index 84% rename from mindspore/lite/nnacl/infer/tensorlist_stack_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_stack_infer.h index 38d6ce0cfd3..ad991d66a62 100644 --- a/mindspore/lite/nnacl/infer/tensorlist_stack_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tensorlist_stack_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_STACK_INFER_H -#define MINDSPORE_LITE_NNACL_TENSORLIST_STACK_INFER_H +#ifndef MINDSPORE_NNACL_TENSORLIST_STACK_INFER_H +#define MINDSPORE_NNACL_TENSORLIST_STACK_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int TensorListStackInferShape(const TensorC *const *inputs, size_t inputs_size, #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TENSORLIST_STACK_INFER_H +#endif // MINDSPORE_NNACL_TENSORLIST_STACK_INFER_H diff --git a/mindspore/lite/nnacl/infer/tile_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tile_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/tile_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tile_infer.c diff --git a/mindspore/lite/nnacl/infer/tile_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tile_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/tile_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tile_infer.h index f5200949da9..26d67610d1b 100644 --- a/mindspore/lite/nnacl/infer/tile_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/tile_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TILE_INFER_H -#define MINDSPORE_LITE_NNACL_TILE_INFER_H +#ifndef MINDSPORE_NNACL_TILE_INFER_H +#define MINDSPORE_NNACL_TILE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/base/tile_base.h" @@ -29,4 +29,4 @@ int TileInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TILE_INFER_H +#endif // MINDSPORE_NNACL_TILE_INFER_H diff --git a/mindspore/lite/nnacl/infer/topk_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/topk_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/topk_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/topk_infer.c diff --git a/mindspore/lite/nnacl/infer/topk_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/topk_infer.h similarity index 87% rename from mindspore/lite/nnacl/infer/topk_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/topk_infer.h index 791cabdf8f3..c5f111ee25c 100644 --- a/mindspore/lite/nnacl/infer/topk_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/topk_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TOPK_INFER_H -#define MINDSPORE_LITE_NNACL_TOPK_INFER_H +#ifndef MINDSPORE_NNACL_TOPK_INFER_H +#define MINDSPORE_NNACL_TOPK_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/fp32/topk_fp32.h" @@ -29,4 +29,4 @@ int TopKInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **o #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TOPK_INFER_H +#endif // MINDSPORE_NNACL_TOPK_INFER_H diff --git a/mindspore/lite/nnacl/infer/transpose_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/transpose_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/transpose_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/transpose_infer.c diff --git a/mindspore/lite/nnacl/infer/transpose_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/transpose_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/transpose_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/transpose_infer.h index 4a8cb4aec81..b29efc2fdce 100644 --- a/mindspore/lite/nnacl/infer/transpose_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/transpose_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TRANSPOSE_INFER_H -#define MINDSPORE_LITE_NNACL_TRANSPOSE_INFER_H +#ifndef MINDSPORE_NNACL_TRANSPOSE_INFER_H +#define MINDSPORE_NNACL_TRANSPOSE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/transpose.h" @@ -29,4 +29,4 @@ int TransposeInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_TRANSPOSE_INFER_H +#endif // MINDSPORE_NNACL_TRANSPOSE_INFER_H diff --git a/mindspore/lite/nnacl/infer/uniform_real_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/uniform_real_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/uniform_real_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/uniform_real_infer.c diff --git a/mindspore/lite/nnacl/infer/uniform_real_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/uniform_real_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/uniform_real_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/uniform_real_infer.h index ceef8dec711..7030b609d52 100644 --- a/mindspore/lite/nnacl/infer/uniform_real_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/uniform_real_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNIFORM_REAL_INFER_H -#define MINDSPORE_LITE_NNACL_UNIFORM_REAL_INFER_H +#ifndef MINDSPORE_NNACL_UNIFORM_REAL_INFER_H +#define MINDSPORE_NNACL_UNIFORM_REAL_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int UniformRealInferShape(const TensorC *const *inputs, size_t inputs_size, Tens #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_UNIFORM_REAL_INFER_H +#endif // MINDSPORE_NNACL_UNIFORM_REAL_INFER_H diff --git a/mindspore/lite/nnacl/infer/unique_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unique_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/unique_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unique_infer.c diff --git a/mindspore/lite/nnacl/infer/unique_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unique_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/unique_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unique_infer.h index ec8b8d434d6..1c99b86fbf7 100644 --- a/mindspore/lite/nnacl/infer/unique_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unique_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNIQUE_INFER_H -#define MINDSPORE_LITE_NNACL_UNIQUE_INFER_H +#ifndef MINDSPORE_NNACL_UNIQUE_INFER_H +#define MINDSPORE_NNACL_UNIQUE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int UniqueInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC * #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_UNIQUE_INFER_H +#endif // MINDSPORE_NNACL_UNIQUE_INFER_H diff --git a/mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsorted_segment_sum_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsorted_segment_sum_infer.c diff --git a/mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsorted_segment_sum_infer.h similarity index 85% rename from mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsorted_segment_sum_infer.h index 3945e2907ba..1382d611e41 100644 --- a/mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsorted_segment_sum_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H -#define MINDSPORE_LITE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H +#ifndef MINDSPORE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H +#define MINDSPORE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H #include "nnacl/infer/common_infer.h" @@ -33,4 +33,4 @@ int UnsortedSegmentSumInferShape(const TensorC *const *inputs, size_t inputs_siz #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H +#endif // MINDSPORE_NNACL_UNSORTED_SEGMENT_SUM_INFER_H diff --git a/mindspore/lite/nnacl/infer/unsqueeze_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsqueeze_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/unsqueeze_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsqueeze_infer.c diff --git a/mindspore/lite/nnacl/infer/unsqueeze_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsqueeze_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/unsqueeze_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsqueeze_infer.h index 72db2bcc190..73cf8162759 100644 --- a/mindspore/lite/nnacl/infer/unsqueeze_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unsqueeze_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSQUEEZE_INFER_H -#define MINDSPORE_LITE_NNACL_UNSQUEEZE_INFER_H +#ifndef MINDSPORE_NNACL_UNSQUEEZE_INFER_H +#define MINDSPORE_NNACL_UNSQUEEZE_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/unsqueeze_parameter.h" @@ -29,4 +29,4 @@ int UnsqueezeInferShape(const TensorC *const *inputs, size_t inputs_size, Tensor #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_UNSQUEEZE_INFER_H +#endif // MINDSPORE_NNACL_UNSQUEEZE_INFER_H diff --git a/mindspore/lite/nnacl/infer/unstack_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unstack_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/unstack_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unstack_infer.c diff --git a/mindspore/lite/nnacl/infer/unstack_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unstack_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/unstack_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unstack_infer.h index 787e369f01c..a97da806ff0 100644 --- a/mindspore/lite/nnacl/infer/unstack_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/unstack_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSTACK_INFER_H -#define MINDSPORE_LITE_NNACL_UNSTACK_INFER_H +#ifndef MINDSPORE_NNACL_UNSTACK_INFER_H +#define MINDSPORE_NNACL_UNSTACK_INFER_H #include "nnacl/infer/common_infer.h" #include "nnacl/unstack_parameter.h" @@ -29,4 +29,4 @@ int UnstackInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_UNSTACK_INFER_H +#endif // MINDSPORE_NNACL_UNSTACK_INFER_H diff --git a/mindspore/lite/nnacl/infer/where_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/where_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/where_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/where_infer.c diff --git a/mindspore/lite/nnacl/infer/where_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/where_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/where_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/where_infer.h index 182a8b45ce0..5ce524675a3 100644 --- a/mindspore/lite/nnacl/infer/where_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/where_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_WHERE_INFER_H -#define MINDSPORE_LITE_NNACL_WHERE_INFER_H +#ifndef MINDSPORE_NNACL_WHERE_INFER_H +#define MINDSPORE_NNACL_WHERE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int WhereInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_WHERE_INFER_H +#endif // MINDSPORE_NNACL_WHERE_INFER_H diff --git a/mindspore/lite/nnacl/infer/while_infer.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/while_infer.c similarity index 100% rename from mindspore/lite/nnacl/infer/while_infer.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/while_infer.c diff --git a/mindspore/lite/nnacl/infer/while_infer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/while_infer.h similarity index 86% rename from mindspore/lite/nnacl/infer/while_infer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/while_infer.h index 10616d5b198..9dd0be2a4d2 100644 --- a/mindspore/lite/nnacl/infer/while_infer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/while_infer.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_WHILE_INFER_H -#define MINDSPORE_LITE_NNACL_WHILE_INFER_H +#ifndef MINDSPORE_NNACL_WHILE_INFER_H +#define MINDSPORE_NNACL_WHILE_INFER_H #include "nnacl/infer/common_infer.h" @@ -28,4 +28,4 @@ int WhileInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC ** #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_WHILE_INFER_H +#endif // MINDSPORE_NNACL_WHILE_INFER_H diff --git a/mindspore/lite/nnacl/instance_norm_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/instance_norm_parameter.h similarity index 83% rename from mindspore/lite/nnacl/instance_norm_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/instance_norm_parameter.h index 988561a3e6d..142f968f6c2 100644 --- a/mindspore/lite/nnacl/instance_norm_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/instance_norm_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INSTANCE_NORM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_INSTANCE_NORM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_INSTANCE_NORM_PARAMETER_H_ +#define MINDSPORE_NNACL_INSTANCE_NORM_PARAMETER_H_ #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ typedef struct InstanceNormParameter { int inner_size_; } InstanceNormParameter; -#endif // MINDSPORE_LITE_NNACL_INSTANCE_NORM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_INSTANCE_NORM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/int8/add_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/add_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/add_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/add_int8.c diff --git a/mindspore/lite/nnacl/int8/add_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/add_int8.h similarity index 94% rename from mindspore/lite/nnacl/int8/add_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/add_int8.h index 8663d79a679..ae87ad550b2 100644 --- a/mindspore/lite/nnacl/int8/add_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/add_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_ADD_INT8_H_ -#define MINDSPORE_LITE_NNACL_ADD_INT8_H_ +#ifndef MINDSPORE_NNACL_ADD_INT8_H_ +#define MINDSPORE_NNACL_ADD_INT8_H_ #ifdef ENABLE_AVX #include @@ -70,4 +70,4 @@ void AddOptInt8_AVX2(const int8_t *ptr_in, const int8_t element_in, int8_t *outp } #endif -#endif // MINDSPORE_LITE_NNACL_ADD_INT8_H_ +#endif // MINDSPORE_NNACL_ADD_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/arg_min_max_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arg_min_max_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/arg_min_max_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arg_min_max_int8.c diff --git a/mindspore/lite/nnacl/int8/arg_min_max_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arg_min_max_int8.h similarity index 90% rename from mindspore/lite/nnacl/int8/arg_min_max_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arg_min_max_int8.h index 26854cdd346..c4770398c9b 100644 --- a/mindspore/lite/nnacl/int8/arg_min_max_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arg_min_max_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ +#define MINDSPORE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ #include "nnacl/arg_min_max_parameter.h" #include "nnacl/int8/quantize.h" @@ -38,4 +38,4 @@ void Int8ArgMinMaxDim3(const int8_t *input, int8_t *output, const int *in_shape, } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_ARG_MIN_MAX_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/arithmetic_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/arithmetic_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_int8.c diff --git a/mindspore/lite/nnacl/int8/arithmetic_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_int8.h similarity index 92% rename from mindspore/lite/nnacl/int8/arithmetic_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_int8.h index ec9d5c6fa18..b97675245cf 100644 --- a/mindspore/lite/nnacl/int8/arithmetic_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_ARITHMETIC_INT8_H_ +#define MINDSPORE_NNACL_INT8_ARITHMETIC_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -48,4 +48,4 @@ int ElementGreaterEqualInt8(int8_t *input0, int8_t *input1, uint8_t *output, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_ARITHMETIC_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/arithmetic_self_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_self_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/arithmetic_self_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_self_int8.c diff --git a/mindspore/lite/nnacl/int8/arithmetic_self_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_self_int8.h similarity index 91% rename from mindspore/lite/nnacl/int8/arithmetic_self_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_self_int8.h index 78ad1e00322..9e991969ca3 100644 --- a/mindspore/lite/nnacl/int8/arithmetic_self_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/arithmetic_self_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ +#define MINDSPORE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ #ifdef ENABLE_NEON #include @@ -56,4 +56,4 @@ int Int8ElementReciprocal(int8_t *input, int8_t *output, int element_size, Arith } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_ARITHMETIC_SELF_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/batch_to_space_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batch_to_space_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/batch_to_space_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batch_to_space_int8.c diff --git a/mindspore/lite/nnacl/int8/batch_to_space_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batch_to_space_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/batch_to_space_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batch_to_space_int8.h index a2e0a18cbc3..a04ad5c4655 100644 --- a/mindspore/lite/nnacl/int8/batch_to_space_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batch_to_space_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ +#define MINDSPORE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -29,4 +29,4 @@ void BatchToSpaceForNHWCInt8(const int8_t *input, int8_t *output, const int *in_ } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_BATCH_TO_SPACE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/batchnorm_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batchnorm_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/batchnorm_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batchnorm_int8.c diff --git a/mindspore/lite/nnacl/int8/batchnorm_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batchnorm_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/batchnorm_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batchnorm_int8.h index 95f59f04013..8f92cc31c3e 100644 --- a/mindspore/lite/nnacl/int8/batchnorm_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/batchnorm_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_BATCHNORM_H_ -#define MINDSPORE_LITE_NNACL_INT8_BATCHNORM_H_ +#ifndef MINDSPORE_NNACL_INT8_BATCHNORM_H_ +#define MINDSPORE_NNACL_INT8_BATCHNORM_H_ #include "nnacl/op_base.h" #include "nnacl/batchnorm_parameter.h" @@ -31,4 +31,4 @@ void BatchNormInt8(int8_t *output_ptr, const int8_t *input_ptr, const float *alp } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_BATCHNORM_H_ +#endif // MINDSPORE_NNACL_INT8_BATCHNORM_H_ diff --git a/mindspore/lite/nnacl/int8/common_func_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/common_func_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/common_func_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/common_func_int8.c diff --git a/mindspore/lite/nnacl/int8/common_func_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/common_func_int8.h similarity index 97% rename from mindspore/lite/nnacl/int8/common_func_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/common_func_int8.h index ae0e0c5ceda..42371096b9a 100644 --- a/mindspore/lite/nnacl/int8/common_func_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/common_func_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_COMMON_FUNC_H_ -#define MINDSPORE_LITE_NNACL_INT8_COMMON_FUNC_H_ +#ifndef MINDSPORE_NNACL_INT8_COMMON_FUNC_H_ +#define MINDSPORE_NNACL_INT8_COMMON_FUNC_H_ #include #ifdef ENABLE_NEON @@ -91,4 +91,4 @@ void ConvDw3x3Int8Horizontal(int8_t *dst, const int8_t *src, const int16_t *weig } #endif -#endif /* MINDSPORE_LITE_NNACL_FP32_COMMON_FUNC_H_ */ +#endif /* MINDSPORE_NNACL_FP32_COMMON_FUNC_H_ */ diff --git a/mindspore/lite/nnacl/int8/concat_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/concat_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/concat_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/concat_int8.c diff --git a/mindspore/lite/nnacl/int8/concat_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/concat_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/concat_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/concat_int8.h index 2c2f9d05d5d..59136add39f 100644 --- a/mindspore/lite/nnacl/int8/concat_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/concat_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CONCAT_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_CONCAT_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_CONCAT_INT8_H_ +#define MINDSPORE_NNACL_INT8_CONCAT_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/concat_parameter.h" @@ -29,4 +29,4 @@ void Int8Concat(int8_t **inputs, int8_t *output_ptr, ConcatParameter *para, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CONCAT_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_CONCAT_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/conv1x1_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv1x1_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/conv1x1_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv1x1_int8.c diff --git a/mindspore/lite/nnacl/int8/conv1x1_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv1x1_int8.h similarity index 91% rename from mindspore/lite/nnacl/int8/conv1x1_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv1x1_int8.h index ec2ef268f51..f8339b54198 100644 --- a/mindspore/lite/nnacl/int8/conv1x1_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv1x1_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CONV1X1_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_CONV1X1_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_CONV1X1_INT8_H_ +#define MINDSPORE_NNACL_INT8_CONV1X1_INT8_H_ #ifdef ENABLE_NEON #include @@ -42,4 +42,4 @@ void Conv1x1Int8Opt(const int8_t *packed_input, const int8_t *packed_weight, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CONV1X1_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_CONV1X1_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/conv3x3_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/conv3x3_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c diff --git a/mindspore/lite/nnacl/int8/conv3x3_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.h similarity index 91% rename from mindspore/lite/nnacl/int8/conv3x3_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.h index 5c1c9818a26..68c60b8bbd1 100644 --- a/mindspore/lite/nnacl/int8/conv3x3_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_CONV_INT8_H_ +#define MINDSPORE_NNACL_INT8_CONV_INT8_H_ #include #ifdef ENABLE_NEON @@ -45,4 +45,4 @@ void Conv3x3Int8(int16_t *input_data, int16_t *transed_weight, const int32_t *bi } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_CONV_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/conv_depthwise_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_depthwise_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/conv_depthwise_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_depthwise_int8.c diff --git a/mindspore/lite/nnacl/int8/conv_depthwise_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_depthwise_int8.h similarity index 92% rename from mindspore/lite/nnacl/int8/conv_depthwise_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_depthwise_int8.h index 9ff845a3e7c..9da14fa27b2 100644 --- a/mindspore/lite/nnacl/int8/conv_depthwise_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_depthwise_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CONV_DEPTHWISE_H_ -#define MINDSPORE_LITE_NNACL_INT8_CONV_DEPTHWISE_H_ +#ifndef MINDSPORE_NNACL_INT8_CONV_DEPTHWISE_H_ +#define MINDSPORE_NNACL_INT8_CONV_DEPTHWISE_H_ #include "nnacl/conv_parameter.h" #include "nnacl/fp32/conv_depthwise_fp32.h" @@ -46,4 +46,4 @@ void DeconvDwInt8(int8_t *output_data, int32_t *output_buffer, const int16_t *in } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CONV_DEPTHWISE_H_ +#endif // MINDSPORE_NNACL_INT8_CONV_DEPTHWISE_H_ diff --git a/mindspore/lite/nnacl/int8/conv_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/conv_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_int8.c diff --git a/mindspore/lite/nnacl/int8/conv_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_int8.h similarity index 90% rename from mindspore/lite/nnacl/int8/conv_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_int8.h index bc0aab94db6..53455f37354 100644 --- a/mindspore/lite/nnacl/int8/conv_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_CONV_INT8_H_ +#define MINDSPORE_NNACL_INT8_CONV_INT8_H_ #include #ifdef ENABLE_NEON @@ -41,4 +41,4 @@ void ConvInt8(int8_t *input_data, int8_t *packed_input, int8_t *matmul_input, in } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CONV_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_CONV_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/crop_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/crop_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/crop_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/crop_int8.c diff --git a/mindspore/lite/nnacl/int8/crop_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/crop_int8.h similarity index 89% rename from mindspore/lite/nnacl/int8/crop_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/crop_int8.h index 77c2adef40a..bbbad23f053 100644 --- a/mindspore/lite/nnacl/int8/crop_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/crop_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_CROP_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_CROP_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_CROP_INT8_H_ +#define MINDSPORE_NNACL_INT8_CROP_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/crop_parameter.h" @@ -31,4 +31,4 @@ void Int8Crop4D(const int8_t *input, int8_t *output, int task_id, CropParameter } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_CROP_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_CROP_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/deconv_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/deconv_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/deconv_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/deconv_int8.c diff --git a/mindspore/lite/nnacl/int8/deconv_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/deconv_int8.h similarity index 92% rename from mindspore/lite/nnacl/int8/deconv_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/deconv_int8.h index 339f6cb40e0..c78c5f6cbe4 100644 --- a/mindspore/lite/nnacl/int8/deconv_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/deconv_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_DECONV_H_ -#define MINDSPORE_LITE_NNACL_INT8_DECONV_H_ +#ifndef MINDSPORE_NNACL_INT8_DECONV_H_ +#define MINDSPORE_NNACL_INT8_DECONV_H_ #include #include "nnacl/pack.h" @@ -43,4 +43,4 @@ int DeConvPostInt8(const int32_t *src, const int32_t *bias, int32_t *tmp, int8_t } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_DECONV_H_ +#endif // MINDSPORE_NNACL_INT8_DECONV_H_ diff --git a/mindspore/lite/nnacl/int8/depth_to_space_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/depth_to_space_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/depth_to_space_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/depth_to_space_int8.c diff --git a/mindspore/lite/nnacl/int8/depth_to_space_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/depth_to_space_int8.h similarity index 84% rename from mindspore/lite/nnacl/int8/depth_to_space_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/depth_to_space_int8.h index 5af96940d58..4117b78166e 100644 --- a/mindspore/lite/nnacl/int8/depth_to_space_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/depth_to_space_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ +#define MINDSPORE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ #include "nnacl/depth_to_space_parameter.h" #include "nnacl/int8/quantize.h" @@ -28,4 +28,4 @@ void DepthToSpaceForNHWCInt8(const int8_t *input, int8_t *output, const int *in_ } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_DEPTH_TO_SPACE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/div_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/div_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/div_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/div_int8.c diff --git a/mindspore/lite/nnacl/int8/div_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/div_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/div_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/div_int8.h index 8522f7247cd..12b5e4399f4 100644 --- a/mindspore/lite/nnacl/int8/div_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/div_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_DIV_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_DIV_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_DIV_INT8_H_ +#define MINDSPORE_NNACL_INT8_DIV_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/errorcode.h" @@ -30,4 +30,4 @@ int DivInt8(int8_t *input0_data, int8_t *input1_data, int8_t *output_data, int64 } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_DIV_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_DIV_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/fixed_point.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/fixed_point.c similarity index 100% rename from mindspore/lite/nnacl/int8/fixed_point.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/fixed_point.c diff --git a/mindspore/lite/nnacl/int8/fixed_point.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/fixed_point.h similarity index 93% rename from mindspore/lite/nnacl/int8/fixed_point.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/fixed_point.h index 92e39812087..86c2a1be534 100644 --- a/mindspore/lite/nnacl/int8/fixed_point.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/fixed_point.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_QUANTIZATION_FIXED_POINT_H_ -#define MINDSPORE_LITE_NNACL_QUANTIZATION_FIXED_POINT_H_ +#ifndef MINDSPORE_NNACL_QUANTIZATION_FIXED_POINT_H_ +#define MINDSPORE_NNACL_QUANTIZATION_FIXED_POINT_H_ #include #include @@ -71,4 +71,4 @@ int32x4_t RoundingDivideByPOTInt32x4(int32x4_t x, int exponent); int32x4_t SaturatingRoundingDoublingHighMulInt32x4(int32x4_t a, int32x4_t b); #endif -#endif // MINDSPORE_LITE_NNACL_QUANTIZATION_FIXED_POINT_H_ +#endif // MINDSPORE_NNACL_QUANTIZATION_FIXED_POINT_H_ diff --git a/mindspore/lite/nnacl/int8/gatherNd_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/gatherNd_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.c diff --git a/mindspore/lite/nnacl/int8/gatherNd_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/gatherNd_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gatherNd_int8.h diff --git a/mindspore/lite/nnacl/int8/gather_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/gather_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.c diff --git a/mindspore/lite/nnacl/int8/gather_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/gather_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/gather_int8.h diff --git a/mindspore/lite/nnacl/int8/hswish_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/hswish_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/hswish_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/hswish_int8.c diff --git a/mindspore/lite/nnacl/int8/hswish_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/hswish_int8.h similarity index 88% rename from mindspore/lite/nnacl/int8/hswish_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/hswish_int8.h index fd18fe43716..525c8e4df7c 100644 --- a/mindspore/lite/nnacl/int8/hswish_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/hswish_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_HSWISH_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_HSWISH_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_HSWISH_INT8_H_ +#define MINDSPORE_NNACL_INT8_HSWISH_INT8_H_ #include #include "nnacl/op_base.h" @@ -40,4 +40,4 @@ int HSwishInt8(const int8_t *src, int length, int8_t *dst, HswishQuantArg *arg); } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_HSWISH_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_HSWISH_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/l2_norm_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/l2_norm_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/l2_norm_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/l2_norm_int8.c diff --git a/mindspore/lite/nnacl/int8/l2_norm_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/l2_norm_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/l2_norm_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/l2_norm_int8.h index b26fa8bf76a..28788a9a012 100644 --- a/mindspore/lite/nnacl/int8/l2_norm_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/l2_norm_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_L2_NORM_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_L2_NORM_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_L2_NORM_INT8_H_ +#define MINDSPORE_NNACL_INT8_L2_NORM_INT8_H_ #include "nnacl/l2_norm_parameter.h" @@ -29,4 +29,4 @@ int L2NormalizationInt8(const int8_t *input_data, int8_t *output_data, const L2N } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_L2_NORM_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_L2_NORM_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/layer_norm_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/layer_norm_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/layer_norm_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/layer_norm_int8.c diff --git a/mindspore/lite/nnacl/int8/layer_norm_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/layer_norm_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/layer_norm_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/layer_norm_int8.h index 3e23478ffae..d91faec6573 100644 --- a/mindspore/lite/nnacl/int8/layer_norm_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/layer_norm_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_LAYER_NORM_H_ -#define MINDSPORE_LITE_NNACL_INT8_LAYER_NORM_H_ +#ifndef MINDSPORE_NNACL_INT8_LAYER_NORM_H_ +#define MINDSPORE_NNACL_INT8_LAYER_NORM_H_ #include "nnacl/errorcode.h" #include "nnacl/layer_norm_parameter.h" @@ -31,4 +31,4 @@ int LayerNormInt8(const int8_t *src_data, const float *gamma_data, const float * } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_LAYER_NORM_H_ +#endif // MINDSPORE_NNACL_INT8_LAYER_NORM_H_ diff --git a/mindspore/lite/nnacl/int8/leaky_relu_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/leaky_relu_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.c diff --git a/mindspore/lite/nnacl/int8/leaky_relu_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/leaky_relu_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/leaky_relu_int8.h diff --git a/mindspore/lite/nnacl/int8/matmul_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/matmul_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/matmul_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/matmul_int8.c diff --git a/mindspore/lite/nnacl/int8/matmul_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/matmul_int8.h similarity index 98% rename from mindspore/lite/nnacl/int8/matmul_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/matmul_int8.h index 2389e98ed9d..6efdca067d6 100644 --- a/mindspore/lite/nnacl/int8/matmul_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/matmul_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_MATMUL_H_ -#define MINDSPORE_LITE_NNACL_INT8_MATMUL_H_ +#ifndef MINDSPORE_NNACL_INT8_MATMUL_H_ +#define MINDSPORE_NNACL_INT8_MATMUL_H_ #include #include "nnacl/op_base.h" diff --git a/mindspore/lite/nnacl/int8/mul_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/mul_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/mul_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/mul_int8.c diff --git a/mindspore/lite/nnacl/int8/mul_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/mul_int8.h similarity index 89% rename from mindspore/lite/nnacl/int8/mul_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/mul_int8.h index 61ccfd89181..af074cba078 100644 --- a/mindspore/lite/nnacl/int8/mul_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/mul_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_MUL_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_MUL_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_MUL_INT8_H_ +#define MINDSPORE_NNACL_INT8_MUL_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/mul_parameter.h" @@ -35,4 +35,4 @@ void FastMul(int8_t *input0_data, int8_t *input1_data, int8_t *output_data, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_MUL_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_MUL_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/pack_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/pack_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c diff --git a/mindspore/lite/nnacl/int8/pack_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.h similarity index 95% rename from mindspore/lite/nnacl/int8/pack_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.h index ea51ac89adc..dcfb2341c03 100644 --- a/mindspore/lite/nnacl/int8/pack_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_PACK_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_PACK_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_PACK_INT8_H_ +#define MINDSPORE_NNACL_INT8_PACK_INT8_H_ #include #include "nnacl/op_base.h" @@ -59,4 +59,4 @@ void PackDeconvDepthwiseInt8Weight(const int8_t *origin_weight, int16_t *packed_ } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_PAD_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_PAD_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/pad_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pad_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/pad_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pad_int8.c diff --git a/mindspore/lite/nnacl/int8/pad_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pad_int8.h similarity index 88% rename from mindspore/lite/nnacl/int8/pad_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pad_int8.h index 41da1655586..b5d64333394 100644 --- a/mindspore/lite/nnacl/int8/pad_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pad_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_PAD_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_PAD_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_PAD_INT8_H_ +#define MINDSPORE_NNACL_INT8_PAD_INT8_H_ #include #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ void MirrorPadInt8(const int8_t *input_data, int8_t *output_data, const int *inp } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_PAD_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_PAD_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/pooling_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/pooling_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.c diff --git a/mindspore/lite/nnacl/int8/pooling_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.h similarity index 91% rename from mindspore/lite/nnacl/int8/pooling_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.h index 623aa05dbd8..8d7a3b831bc 100644 --- a/mindspore/lite/nnacl/int8/pooling_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_POOLING_H_ -#define MINDSPORE_LITE_NNACL_INT8_POOLING_H_ +#ifndef MINDSPORE_NNACL_INT8_POOLING_H_ +#define MINDSPORE_NNACL_INT8_POOLING_H_ #ifdef ENABLE_NEON #include @@ -41,4 +41,4 @@ void MaxPoolingOptInt8(const int8_t *input_ptr, int8_t *output_ptr, PoolingParam } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_POOLING_H_ +#endif // MINDSPORE_NNACL_INT8_POOLING_H_ diff --git a/mindspore/lite/nnacl/int8/power_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/power_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/power_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/power_int8.c diff --git a/mindspore/lite/nnacl/int8/power_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/power_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/power_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/power_int8.h index 86fe6509801..3e3c3b7d697 100644 --- a/mindspore/lite/nnacl/int8/power_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/power_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_POWER_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_POWER_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_POWER_INT8_H_ +#define MINDSPORE_NNACL_INT8_POWER_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/power_parameter.h" @@ -29,4 +29,4 @@ int PowerInt8(const int8_t *input_ptr, int8_t *exp_ptr, int8_t *output_ptr, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_POWER_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_POWER_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/quant_dtype_cast_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quant_dtype_cast_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/quant_dtype_cast_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quant_dtype_cast_int8.c diff --git a/mindspore/lite/nnacl/int8/quant_dtype_cast_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quant_dtype_cast_int8.h similarity index 90% rename from mindspore/lite/nnacl/int8/quant_dtype_cast_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quant_dtype_cast_int8.h index cc61782c6b6..f1a76ac0002 100644 --- a/mindspore/lite/nnacl/int8/quant_dtype_cast_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quant_dtype_cast_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_QUANTDTYPECAST_H_ -#define MINDSPORE_LITE_NNACL_INT8_QUANTDTYPECAST_H_ +#ifndef MINDSPORE_NNACL_INT8_QUANTDTYPECAST_H_ +#define MINDSPORE_NNACL_INT8_QUANTDTYPECAST_H_ #include "nnacl/op_base.h" @@ -39,4 +39,4 @@ int UInt8ToInt8(const uint8_t *real_values, int8_t *quant_values, int size); } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_QUANTDTYPECAST_H_ +#endif // MINDSPORE_NNACL_INT8_QUANTDTYPECAST_H_ diff --git a/mindspore/lite/nnacl/int8/quantize.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quantize.c similarity index 100% rename from mindspore/lite/nnacl/int8/quantize.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quantize.c diff --git a/mindspore/lite/nnacl/int8/quantize.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quantize.h similarity index 97% rename from mindspore/lite/nnacl/int8/quantize.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quantize.h index 06a4b5fa550..590c0362486 100644 --- a/mindspore/lite/nnacl/int8/quantize.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/quantize.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_QUANTIZATION_QUANTIZE_H_ -#define MINDSPORE_LITE_NNACL_QUANTIZATION_QUANTIZE_H_ +#ifndef MINDSPORE_NNACL_QUANTIZATION_QUANTIZE_H_ +#define MINDSPORE_NNACL_QUANTIZATION_QUANTIZE_H_ #include #include @@ -216,4 +216,4 @@ void Dequantize(int8_t *input_data, int length, float scale, int zero_point, flo } #endif -#endif // MINDSPORE_LITE_NNACL_QUANTIZATION_QUANTIZE_H_ +#endif // MINDSPORE_NNACL_QUANTIZATION_QUANTIZE_H_ diff --git a/mindspore/lite/nnacl/int8/reduce_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reduce_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/reduce_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reduce_int8.c diff --git a/mindspore/lite/nnacl/int8/reduce_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reduce_int8.h similarity index 97% rename from mindspore/lite/nnacl/int8/reduce_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reduce_int8.h index 44d845f5ff9..99a5dfee137 100644 --- a/mindspore/lite/nnacl/int8/reduce_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reduce_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_REDUCE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_REDUCE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_REDUCE_INT8_H_ +#define MINDSPORE_NNACL_INT8_REDUCE_INT8_H_ #include "nnacl/int8/quantize.h" @@ -67,4 +67,4 @@ int ReduceSumSquareInt8(const int outer_size, const int inner_size, const int ax #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_REDUCE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_REDUCE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/relux_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/relux_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/relux_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/relux_int8.c diff --git a/mindspore/lite/nnacl/int8/relux_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/relux_int8.h similarity index 88% rename from mindspore/lite/nnacl/int8/relux_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/relux_int8.h index 78b78596e82..591f53a94d8 100644 --- a/mindspore/lite/nnacl/int8/relux_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/relux_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_RELU_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_RELU_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_RELU_INT8_H_ +#define MINDSPORE_NNACL_INT8_RELU_INT8_H_ #include #include "nnacl/op_base.h" @@ -40,4 +40,4 @@ void ReluXInt8(const int8_t *src, int length, int8_t *dst, ReluXQuantArg *arg); } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_RELU_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_RELU_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/reshape_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reshape_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/reshape_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reshape_int8.c diff --git a/mindspore/lite/nnacl/int8/reshape_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reshape_int8.h similarity index 84% rename from mindspore/lite/nnacl/int8/reshape_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reshape_int8.h index 5e88d859881..cfe2045a79e 100644 --- a/mindspore/lite/nnacl/int8/reshape_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/reshape_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_RESHAHPE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_RESHAHPE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_RESHAHPE_INT8_H_ +#define MINDSPORE_NNACL_INT8_RESHAHPE_INT8_H_ #include #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ void Int8Reshape(int8_t *input_ptr, int8_t *output_ptr, int64_t real_dst_count, } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_RESHAHPE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_RESHAHPE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/resize_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/resize_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/resize_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/resize_int8.c diff --git a/mindspore/lite/nnacl/int8/resize_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/resize_int8.h similarity index 93% rename from mindspore/lite/nnacl/int8/resize_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/resize_int8.h index 49a328262a3..54189c3b2e1 100644 --- a/mindspore/lite/nnacl/int8/resize_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/resize_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_RESIZE_H_ -#define MINDSPORE_LITE_NNACL_INT8_RESIZE_H_ +#ifndef MINDSPORE_NNACL_INT8_RESIZE_H_ +#define MINDSPORE_NNACL_INT8_RESIZE_H_ #ifdef ENABLE_NEON #include @@ -47,4 +47,4 @@ void ComputeNearestNeighborInt(const int32_t pos, const int in_size, const int32 } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_RESIZE_H_ +#endif // MINDSPORE_NNACL_INT8_RESIZE_H_ diff --git a/mindspore/lite/nnacl/int8/scale_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/scale_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/scale_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/scale_int8.c diff --git a/mindspore/lite/nnacl/int8/scale_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/scale_int8.h similarity index 89% rename from mindspore/lite/nnacl/int8/scale_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/scale_int8.h index 993e5b808ca..61876cf9683 100644 --- a/mindspore/lite/nnacl/int8/scale_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/scale_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SCALE_INT8_H_ -#define MINDSPORE_LITE_NNACL_SCALE_INT8_H_ +#ifndef MINDSPORE_NNACL_SCALE_INT8_H_ +#define MINDSPORE_NNACL_SCALE_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/scale.h" @@ -32,4 +32,4 @@ void DoScaleWithBiasInt8(const int8_t *in_data, int8_t *out_data, const int8_t * } #endif -#endif // MINDSPORE_LITE_NNACL_SCALE_INT8_H_ +#endif // MINDSPORE_NNACL_SCALE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/sigmoid_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/sigmoid_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.c diff --git a/mindspore/lite/nnacl/int8/sigmoid_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/sigmoid_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sigmoid_int8.h diff --git a/mindspore/lite/nnacl/int8/slice_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/slice_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/slice_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/slice_int8.c diff --git a/mindspore/lite/nnacl/int8/slice_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/slice_int8.h similarity index 87% rename from mindspore/lite/nnacl/int8/slice_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/slice_int8.h index 70ac1fbd8c9..b1b38923a0a 100644 --- a/mindspore/lite/nnacl/int8/slice_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/slice_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SLICE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SLICE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SLICE_INT8_H_ +#define MINDSPORE_NNACL_INT8_SLICE_INT8_H_ #include #include @@ -31,4 +31,4 @@ int SliceInt8(const int8_t *input, int8_t *output, SliceParameter *param, int th } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SLICE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SLICE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/softmax_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/softmax_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/softmax_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/softmax_int8.c diff --git a/mindspore/lite/nnacl/int8/softmax_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/softmax_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/softmax_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/softmax_int8.h index 83c8aa7ca06..dfe2213669b 100644 --- a/mindspore/lite/nnacl/int8/softmax_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/softmax_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SOFTMAX_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SOFTMAX_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SOFTMAX_INT8_H_ +#define MINDSPORE_NNACL_INT8_SOFTMAX_INT8_H_ #include #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ int SoftmaxInt8(const int8_t *input_ptr, int8_t *output_ptr, int count, int *exp } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SOFTMAX_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SOFTMAX_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/space_to_batch_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/space_to_batch_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/space_to_batch_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/space_to_batch_int8.c diff --git a/mindspore/lite/nnacl/int8/space_to_batch_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/space_to_batch_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/space_to_batch_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/space_to_batch_int8.h index a8e6df17a85..fb035e21f58 100644 --- a/mindspore/lite/nnacl/int8/space_to_batch_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/space_to_batch_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ +#define MINDSPORE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/fp32/space_to_batch_fp32.h" @@ -29,4 +29,4 @@ void DoSpaceToBatchPaddingNHWCInt8(const int8_t *input, int8_t *output, SpaceToB } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SPACE_TO_BATCH_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/splice_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/splice_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/splice_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/splice_int8.c diff --git a/mindspore/lite/nnacl/int8/splice_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/splice_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/splice_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/splice_int8.h index 326aea4a0df..42bc0e5a647 100644 --- a/mindspore/lite/nnacl/int8/splice_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/splice_int8.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SPLICE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SPLICE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SPLICE_INT8_H_ +#define MINDSPORE_NNACL_INT8_SPLICE_INT8_H_ #include #include "nnacl/splice_parameter.h" #ifdef __cplusplus @@ -27,4 +27,4 @@ void SpliceInt8(const int8_t *src_data, int src_row, int src_col, const SplicePa #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SPLICE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SPLICE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/split_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/split_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/split_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/split_int8.c diff --git a/mindspore/lite/nnacl/int8/split_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/split_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/split_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/split_int8.h index 065674c56a1..8933777e348 100644 --- a/mindspore/lite/nnacl/int8/split_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/split_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SPLIT_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SPLIT_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SPLIT_INT8_H_ +#define MINDSPORE_NNACL_INT8_SPLIT_INT8_H_ #include #include "nnacl/op_base.h" @@ -30,4 +30,4 @@ int Int8DoSplit(int8_t *in_data, int8_t **out_data, const int *input_shape, int } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SPLIT_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SPLIT_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/squeeze_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/squeeze_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.c diff --git a/mindspore/lite/nnacl/int8/squeeze_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/squeeze_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/squeeze_int8.h diff --git a/mindspore/lite/nnacl/int8/sub_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sub_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/sub_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sub_int8.c diff --git a/mindspore/lite/nnacl/int8/sub_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sub_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/sub_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sub_int8.h index 6764072e70b..0095324b791 100644 --- a/mindspore/lite/nnacl/int8/sub_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/sub_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_SUB_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_SUB_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_SUB_INT8_H_ +#define MINDSPORE_NNACL_INT8_SUB_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -28,4 +28,4 @@ int SubInt8(int8_t *input0_data, int8_t *input1_data, int8_t *output_data, int64 } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_SUB_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_SUB_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/tanh_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/tanh_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/tanh_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/tanh_int8.c diff --git a/mindspore/lite/nnacl/int8/tanh_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/tanh_int8.h similarity index 88% rename from mindspore/lite/nnacl/int8/tanh_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/tanh_int8.h index 1ad2cbecf41..428a1bd8059 100644 --- a/mindspore/lite/nnacl/int8/tanh_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/tanh_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_TANH_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_TANH_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_TANH_INT8_H_ +#define MINDSPORE_NNACL_INT8_TANH_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -40,4 +40,4 @@ void TanhInt8(const int8_t *input_ptr, int8_t *output_ptr, int size, TanhQuantPa } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_TANH_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_TANH_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/topk_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/topk_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/topk_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/topk_int8.c diff --git a/mindspore/lite/nnacl/int8/topk_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/topk_int8.h similarity index 86% rename from mindspore/lite/nnacl/int8/topk_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/topk_int8.h index 6dfb76725c4..1fe82f2eca4 100644 --- a/mindspore/lite/nnacl/int8/topk_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/topk_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_TOPK_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_TOPK_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_TOPK_INT8_H_ +#define MINDSPORE_NNACL_INT8_TOPK_INT8_H_ #include "nnacl/op_base.h" #include "nnacl/fp32/topk_fp32.h" @@ -33,4 +33,4 @@ void TopkInt8(int8_t *input_data, int8_t *output_data, int32_t *output_index, To } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_TOPK_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_TOPK_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/transpose_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/transpose_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/transpose_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/transpose_int8.c diff --git a/mindspore/lite/nnacl/int8/transpose_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/transpose_int8.h similarity index 85% rename from mindspore/lite/nnacl/int8/transpose_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/transpose_int8.h index c90c485bc14..7f842482f72 100644 --- a/mindspore/lite/nnacl/int8/transpose_int8.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/transpose_int8.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INT8_TRANSPOSE_INT8_H_ -#define MINDSPORE_LITE_NNACL_INT8_TRANSPOSE_INT8_H_ +#ifndef MINDSPORE_NNACL_INT8_TRANSPOSE_INT8_H_ +#define MINDSPORE_NNACL_INT8_TRANSPOSE_INT8_H_ #include #include "nnacl/transpose.h" @@ -32,4 +32,4 @@ int DoTransposeInt8(const int8_t *in_data, int8_t *out_data, const int *output_s } #endif -#endif // MINDSPORE_LITE_NNACL_INT8_TRANSPOSE_INT8_H_ +#endif // MINDSPORE_NNACL_INT8_TRANSPOSE_INT8_H_ diff --git a/mindspore/lite/nnacl/int8/unsqueeze_int8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.c similarity index 100% rename from mindspore/lite/nnacl/int8/unsqueeze_int8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.c diff --git a/mindspore/lite/nnacl/int8/unsqueeze_int8.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.h similarity index 100% rename from mindspore/lite/nnacl/int8/unsqueeze_int8.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/unsqueeze_int8.h diff --git a/mindspore/lite/nnacl/intrinsics/avx/common_utils.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/avx/common_utils.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/avx/common_utils.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/avx/common_utils.c diff --git a/mindspore/lite/nnacl/intrinsics/avx/common_utils.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/avx/common_utils.h similarity index 88% rename from mindspore/lite/nnacl/intrinsics/avx/common_utils.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/avx/common_utils.h index 14589405dc5..f53de26dacc 100644 --- a/mindspore/lite/nnacl/intrinsics/avx/common_utils.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/avx/common_utils.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_X86_64_AVX_COMMON_UTILS_H_ -#define MINDSPORE_LITE_NNACL_X86_64_AVX_COMMON_UTILS_H_ +#ifndef MINDSPORE_NNACL_X86_64_AVX_COMMON_UTILS_H_ +#define MINDSPORE_NNACL_X86_64_AVX_COMMON_UTILS_H_ #include @@ -41,4 +41,4 @@ __m128i _mm_qrdmulh_epi32(__m128i a, __m128i b); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_X86_64_AVX_COMMON_UTILS_H_ +#endif // MINDSPORE_NNACL_X86_64_AVX_COMMON_UTILS_H_ diff --git a/mindspore/lite/nnacl/intrinsics/ms_simd_instructions.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/ms_simd_instructions.h similarity index 98% rename from mindspore/lite/nnacl/intrinsics/ms_simd_instructions.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/ms_simd_instructions.h index ad73a8ebf61..4b46d798d70 100644 --- a/mindspore/lite/nnacl/intrinsics/ms_simd_instructions.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/ms_simd_instructions.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ -#define MINDSPORE_LITE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ +#ifndef MINDSPORE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ +#define MINDSPORE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ #include #ifdef ENABLE_ARM #include @@ -226,4 +226,4 @@ static inline float16x8_t MS_ERFX8_F16(float16x8_t src) { } #endif -#endif // MINDSPORE_LITE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ +#endif // MINDSPORE_NNACL_INTRINSICS_MS_SIMD_INSTRUCTIONS_H_ diff --git a/mindspore/lite/nnacl/intrinsics/sse/ConvDwFp32IndirectRow.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/ConvDwFp32IndirectRow.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/ConvDwFp32IndirectRow.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/ConvDwFp32IndirectRow.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/ConvDwFp32Row_sse.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/ConvDwFp32Row_sse.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/ConvDwFp32Row_sse.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/ConvDwFp32Row_sse.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/DepthwiseFp32_Sse.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/DepthwiseFp32_Sse.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/DepthwiseFp32_Sse.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/DepthwiseFp32_Sse.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/MatMul_Sse.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/MatMul_Sse.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/MatMul_Sse.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/MatMul_Sse.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/PostFuncBiasReluC4.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/PostFuncBiasReluC4.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/PostFuncBiasReluC4.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/PostFuncBiasReluC4.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/PostFuncBiasReluC8.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/PostFuncBiasReluC8.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/PostFuncBiasReluC8.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/PostFuncBiasReluC8.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/TiledC4MatMulFp32.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/TiledC4MatMulFp32.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/TiledC4MatMulFp32.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/TiledC4MatMulFp32.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/WinogradTrans.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/WinogradTrans.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/WinogradTrans.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/WinogradTrans.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/sse_common.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/sse_common.c similarity index 100% rename from mindspore/lite/nnacl/intrinsics/sse/sse_common.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/sse_common.c diff --git a/mindspore/lite/nnacl/intrinsics/sse/sse_common.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/sse_common.h similarity index 94% rename from mindspore/lite/nnacl/intrinsics/sse/sse_common.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/sse_common.h index fd48d184c88..e726b78510e 100644 --- a/mindspore/lite/nnacl/intrinsics/sse/sse_common.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/sse_common.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ -#define MINDSPORE_LITE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ +#ifndef MINDSPORE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ +#define MINDSPORE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ #ifdef __cplusplus extern "C" { @@ -53,4 +53,4 @@ void DoBiasBlock8(const float *bias_ptr, __m128 *dst1, __m128 *dst2, __m128 *dst } #endif -#endif // MINDSPORE_LITE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ +#endif // MINDSPORE_NNACL_INTRINSICS_SSE_SSE_COMMON_H_ diff --git a/mindspore/lite/nnacl/l2_norm_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/l2_norm_parameter.h similarity index 87% rename from mindspore/lite/nnacl/l2_norm_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/l2_norm_parameter.h index 4343ef3f5ec..78effda2706 100644 --- a/mindspore/lite/nnacl/l2_norm_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/l2_norm_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_L2NORM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_L2NORM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_L2NORM_PARAMETER_H_ +#define MINDSPORE_NNACL_L2NORM_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -38,4 +38,4 @@ typedef struct { QuantArg out_; } L2NormQuantArg; -#endif // MINDSPORE_LITE_NNACL_L2NORM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_L2NORM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/layer_norm_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/layer_norm_parameter.h similarity index 89% rename from mindspore/lite/nnacl/layer_norm_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/layer_norm_parameter.h index 928662d9d7e..00cfa5e83f1 100644 --- a/mindspore/lite/nnacl/layer_norm_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/layer_norm_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LAYER_NORM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_LAYER_NORM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_LAYER_NORM_PARAMETER_H_ +#define MINDSPORE_NNACL_LAYER_NORM_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -47,4 +47,4 @@ typedef struct LayerNormQuantArg { double out_scale_; } LayerNormQuantArg; -#endif // MINDSPORE_LITE_NNACL_LAYER_NORM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_LAYER_NORM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/lsh_projection_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lsh_projection_parameter.h similarity index 84% rename from mindspore/lite/nnacl/lsh_projection_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lsh_projection_parameter.h index 9275279b053..e52a1cc6d4e 100644 --- a/mindspore/lite/nnacl/lsh_projection_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lsh_projection_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LSH_PROJECTION_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_LSH_PROJECTION_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_LSH_PROJECTION_PARAMETER_H_ +#define MINDSPORE_NNACL_LSH_PROJECTION_PARAMETER_H_ #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ typedef struct LshProjectionParameter { int64_t thread_stride_; } LshProjectionParameter; -#endif // MINDSPORE_LITE_NNACL_LSH_PROJECTION_PARAMETER_H_ +#endif // MINDSPORE_NNACL_LSH_PROJECTION_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/lstm_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lstm_parameter.h similarity index 88% rename from mindspore/lite/nnacl/lstm_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lstm_parameter.h index b400a2437c2..8c5eb573438 100644 --- a/mindspore/lite/nnacl/lstm_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/lstm_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_LSTM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_LSTM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_LSTM_PARAMETER_H_ +#define MINDSPORE_NNACL_LSTM_PARAMETER_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct LstmParameter { int state_col_align_; } LstmParameter; -#endif // MINDSPORE_LITE_NNACL_LSTM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_LSTM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/matmul_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/matmul_parameter.h similarity index 95% rename from mindspore/lite/nnacl/matmul_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/matmul_parameter.h index 9f9c023568e..a513f4608b6 100644 --- a/mindspore/lite/nnacl/matmul_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/matmul_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MATMUL_H_ -#define MINDSPORE_LITE_NNACL_MATMUL_H_ +#ifndef MINDSPORE_NNACL_MATMUL_H_ +#define MINDSPORE_NNACL_MATMUL_H_ #include "nnacl/op_base.h" @@ -76,4 +76,4 @@ typedef struct MatmulQuantParameter { int32_t *quant_multiplier_; } MatmulQuantParameter; -#endif // MINDSPORE_LITE_NNACL_MATMUL_H_ +#endif // MINDSPORE_NNACL_MATMUL_H_ diff --git a/mindspore/lite/nnacl/mul_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/mul_parameter.h similarity index 88% rename from mindspore/lite/nnacl/mul_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/mul_parameter.h index 7c2d8fe181a..d36daf32a2c 100644 --- a/mindspore/lite/nnacl/mul_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/mul_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_MUL_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_MUL_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_MUL_PARAMETER_H_ +#define MINDSPORE_NNACL_MUL_PARAMETER_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct MulParameter { MulQuantArg mul_quant_arg_; } MulParameter; -#endif // MINDSPORE_LITE_NNACL_MUL_PARAMETER_H_ +#endif // MINDSPORE_NNACL_MUL_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/nnacl_common.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_common.c similarity index 100% rename from mindspore/lite/nnacl/nnacl_common.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_common.c diff --git a/mindspore/lite/nnacl/nnacl_common.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_common.h similarity index 92% rename from mindspore/lite/nnacl/nnacl_common.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_common.h index 3e02fe89917..eee9a5e9842 100644 --- a/mindspore/lite/nnacl/nnacl_common.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_common.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_NNACL_COMMON_H_ -#define MINDSPORE_LITE_NNACL_NNACL_COMMON_H_ +#ifndef MINDSPORE_NNACL_NNACL_COMMON_H_ +#define MINDSPORE_NNACL_NNACL_COMMON_H_ #include "nnacl/op_base.h" @@ -57,4 +57,4 @@ uint16_t Float32ToShort(float src_value); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_NNACL_COMMON_H_ +#endif // MINDSPORE_NNACL_NNACL_COMMON_H_ diff --git a/mindspore/lite/nnacl/nnacl_utils.c b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.c similarity index 100% rename from mindspore/lite/nnacl/nnacl_utils.c rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.c diff --git a/mindspore/lite/nnacl/nnacl_utils.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.h similarity index 86% rename from mindspore/lite/nnacl/nnacl_utils.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.h index 735425d3bbc..903754c02cc 100644 --- a/mindspore/lite/nnacl/nnacl_utils.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_NNACL_UTILS_H_ -#define MINDSPORE_LITE_NNACL_NNACL_UTILS_H_ +#ifndef MINDSPORE_NNACL_NNACL_UTILS_H_ +#define MINDSPORE_NNACL_NNACL_UTILS_H_ #include #ifdef __cplusplus @@ -36,4 +36,4 @@ uint32_t getHwCap(int hwcap_type); #ifdef __cplusplus } #endif -#endif // MINDSPORE_LITE_NNACL_NNACL_UTILS_H_ +#endif // MINDSPORE_NNACL_NNACL_UTILS_H_ diff --git a/mindspore/lite/nnacl/non_max_suppression_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/non_max_suppression_parameter.h similarity index 80% rename from mindspore/lite/nnacl/non_max_suppression_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/non_max_suppression_parameter.h index 409dc9b3426..d40cd71d002 100644 --- a/mindspore/lite/nnacl/non_max_suppression_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/non_max_suppression_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ +#define MINDSPORE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ #include "nnacl/op_base.h" @@ -25,4 +25,4 @@ typedef struct NMSParameter { int center_point_box_; } NMSParameter; -#endif // MINDSPORE_LITE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ +#endif // MINDSPORE_NNACL_NON_MAX_SUPPRESSION_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/op_base.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/op_base.h similarity index 95% rename from mindspore/lite/nnacl/op_base.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/op_base.h index 476fdb8534f..c75f9be8436 100644 --- a/mindspore/lite/nnacl/op_base.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/op_base.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_OP_BASE_H_ -#define MINDSPORE_LITE_NNACL_OP_BASE_H_ +#ifndef MINDSPORE_NNACL_OP_BASE_H_ +#define MINDSPORE_NNACL_OP_BASE_H_ #include #include @@ -104,4 +104,4 @@ typedef enum CalFixedMultiplierMode { Method_DoublePrecision } CalFixedMultiplierMode; -#endif // MINDSPORE_LITE_NNACL_OP_BASE_H_ +#endif // MINDSPORE_NNACL_OP_BASE_H_ diff --git a/mindspore/lite/nnacl/optimize/CMakeLists.txt b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/optimize/CMakeLists.txt similarity index 100% rename from mindspore/lite/nnacl/optimize/CMakeLists.txt rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/optimize/CMakeLists.txt diff --git a/mindspore/lite/nnacl/pack.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pack.h similarity index 86% rename from mindspore/lite/nnacl/pack.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pack.h index f51ec8410a9..7c3a4b3acc8 100644 --- a/mindspore/lite/nnacl/pack.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pack.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PACK_H_ -#define MINDSPORE_LITE_NNACL_PACK_H_ +#ifndef MINDSPORE_NNACL_PACK_H_ +#define MINDSPORE_NNACL_PACK_H_ #include "nnacl/fp32/pack_fp32.h" #include "nnacl/int8/pack_int8.h" @@ -28,4 +28,4 @@ extern "C" { } #endif -#endif // MINDSPORE_LITE_NNACL_PACK_H_ +#endif // MINDSPORE_NNACL_PACK_H_ diff --git a/mindspore/lite/nnacl/pad_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pad_parameter.h similarity index 90% rename from mindspore/lite/nnacl/pad_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pad_parameter.h index fb9c7ae136c..a6f2a1b5e41 100644 --- a/mindspore/lite/nnacl/pad_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pad_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PAD_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_PAD_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_PAD_PARAMETER_H_ +#define MINDSPORE_NNACL_PAD_PARAMETER_H_ #include "nnacl/op_base.h" @@ -48,4 +48,4 @@ typedef struct MirrorPadBlock { int size_[DEFAULT_PAD_NDIMS]; } MirrorPadBlock; -#endif // MINDSPORE_LITE_NNACL_PAD_PARAMETER_H_ +#endif // MINDSPORE_NNACL_PAD_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/pooling_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pooling_parameter.h similarity index 90% rename from mindspore/lite/nnacl/pooling_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pooling_parameter.h index 84f7e1b068f..76e89147236 100644 --- a/mindspore/lite/nnacl/pooling_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pooling_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_POOLING_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_POOLING_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_POOLING_PARAMETER_H_ +#define MINDSPORE_NNACL_POOLING_PARAMETER_H_ #include "nnacl/op_base.h" @@ -54,4 +54,4 @@ typedef struct PoolingParameter { bool quantize_; } PoolingParameter; -#endif // MINDSPORE_LITE_NNACL_POOLING_PARAMETER_H_ +#endif // MINDSPORE_NNACL_POOLING_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/power_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/power_parameter.h similarity index 87% rename from mindspore/lite/nnacl/power_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/power_parameter.h index 34f46a73e82..25c77456503 100644 --- a/mindspore/lite/nnacl/power_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/power_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_POWER_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_POWER_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_POWER_PARAMETER_H_ +#define MINDSPORE_NNACL_POWER_PARAMETER_H_ #include "nnacl/op_base.h" @@ -38,4 +38,4 @@ typedef struct PowerParameter { bool broadcast_; } PowerParameter; -#endif // MINDSPORE_LITE_NNACL_POWER_PARAMETER_H_ +#endif // MINDSPORE_NNACL_POWER_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/predict_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/predict_parameter.h similarity index 84% rename from mindspore/lite/nnacl/predict_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/predict_parameter.h index a4e0fc857b2..b2901ff6995 100644 --- a/mindspore/lite/nnacl/predict_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/predict_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PREDICT_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_PREDICT_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_PREDICT_PARAMETER_H_ +#define MINDSPORE_NNACL_PREDICT_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct { @@ -29,4 +29,4 @@ typedef struct { int label; float weight; } LabelInfo; -#endif // MINDSPORE_LITE_NNACL_PREDICT_PARAMETER_H_ +#endif // MINDSPORE_NNACL_PREDICT_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/prelu_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prelu_parameter.h similarity index 85% rename from mindspore/lite/nnacl/prelu_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prelu_parameter.h index 5e1087f7f7d..9fdaa1d59dc 100644 --- a/mindspore/lite/nnacl/prelu_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prelu_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PRELU_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_PRELU_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_PRELU_PARAMETER_H_ +#define MINDSPORE_NNACL_PRELU_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct PReluParameter { @@ -29,4 +29,4 @@ typedef struct PReluParameter { int input_num_; } PReluParameter; -#endif // MINDSPORE_LITE_NNACL_PRELU_PARAMETER_H_ +#endif // MINDSPORE_NNACL_PRELU_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/prior_box_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prior_box_parameter.h similarity index 87% rename from mindspore/lite/nnacl/prior_box_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prior_box_parameter.h index f258299b7ee..699e2a20287 100644 --- a/mindspore/lite/nnacl/prior_box_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/prior_box_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_PRIOR_BOX_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_PRIOR_BOX_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_PRIOR_BOX_PARAMETER_H_ +#define MINDSPORE_NNACL_PRIOR_BOX_PARAMETER_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct PriorBoxParameter { float offset; } PriorBoxParameter; -#endif // MINDSPORE_LITE_NNACL_PRIOR_BOX_PARAMETER_H_ +#endif // MINDSPORE_NNACL_PRIOR_BOX_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/random_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/random_parameter.h similarity index 81% rename from mindspore/lite/nnacl/random_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/random_parameter.h index bf3473c16c5..9907617c241 100644 --- a/mindspore/lite/nnacl/random_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/random_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RNADOM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_RNADOM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_RNADOM_PARAMETER_H_ +#define MINDSPORE_NNACL_RNADOM_PARAMETER_H_ #include "nnacl/op_base.h" @@ -24,4 +24,4 @@ typedef struct RandomParam { int seed2_; } RandomParam; -#endif // MINDSPORE_LITE_NNACL_RNADOM_STANDARD_NORMAL_PARAMETER_H_ +#endif // MINDSPORE_NNACL_RNADOM_STANDARD_NORMAL_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/reduce_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reduce_parameter.h similarity index 85% rename from mindspore/lite/nnacl/reduce_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reduce_parameter.h index 1e7ace41569..e0752d0c292 100644 --- a/mindspore/lite/nnacl/reduce_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reduce_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_REDUCE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_REDUCE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_REDUCE_PARAMETER_H_ +#define MINDSPORE_NNACL_REDUCE_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct ReduceParameter { @@ -31,4 +31,4 @@ typedef struct ReduceParameter { int num_axes_; } ReduceParameter; -#endif // MINDSPORE_LITE_NNACL_REDUCE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_REDUCE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/reshape_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reshape_parameter.h similarity index 86% rename from mindspore/lite/nnacl/reshape_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reshape_parameter.h index 1e64e8a3f6a..c23fbbff662 100644 --- a/mindspore/lite/nnacl/reshape_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reshape_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RESHAHPE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_RESHAHPE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_RESHAHPE_PARAMETER_H_ +#define MINDSPORE_NNACL_RESHAHPE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct ReshapeParameter { int thread_count_; } ReshapeParameter; -#endif // MINDSPORE_LITE_NNACL_RESHAHPE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_RESHAHPE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/resize_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/resize_parameter.h similarity index 87% rename from mindspore/lite/nnacl/resize_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/resize_parameter.h index 5f7c486482e..507945f6ea6 100644 --- a/mindspore/lite/nnacl/resize_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/resize_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_RESIZE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_RESIZE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_RESIZE_PARAMETER_H_ +#define MINDSPORE_NNACL_RESIZE_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct ResizeParameter { @@ -34,4 +34,4 @@ typedef struct CropAndResizeParameter { int method_; float extrapolation_value_; } CropAndResizeParameter; -#endif // MINDSPORE_LITE_NNACL_RESIZE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_RESIZE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/reverse_sequence_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reverse_sequence_parameter.h similarity index 86% rename from mindspore/lite/nnacl/reverse_sequence_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reverse_sequence_parameter.h index dd5ce36462c..da0305dd0ce 100644 --- a/mindspore/lite/nnacl/reverse_sequence_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/reverse_sequence_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ +#define MINDSPORE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -42,4 +42,4 @@ typedef struct ReverseSequenceParameter { bool is_seq_length_int32_; } ReverseSequenceParameter; -#endif // MINDSPORE_LITE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_REVERSE_SEQUENCE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/scale.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/scale.h similarity index 90% rename from mindspore/lite/nnacl/scale.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/scale.h index dbca958234d..9faf063be84 100644 --- a/mindspore/lite/nnacl/scale.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/scale.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SCALE_H_ -#define MINDSPORE_LITE_NNACL_SCALE_H_ +#ifndef MINDSPORE_NNACL_SCALE_H_ +#define MINDSPORE_NNACL_SCALE_H_ #include "nnacl/op_base.h" @@ -43,4 +43,4 @@ typedef struct ScaleParameter { int output_activation_max_; } ScaleParameter; -#endif // MINDSPORE_LITE_NNACL_SCALE_H_ +#endif // MINDSPORE_NNACL_SCALE_H_ diff --git a/mindspore/lite/nnacl/sigmoid_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sigmoid_parameter.h similarity index 87% rename from mindspore/lite/nnacl/sigmoid_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sigmoid_parameter.h index f5cade2fb8a..b17b1026e87 100644 --- a/mindspore/lite/nnacl/sigmoid_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sigmoid_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SIGMOID_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SIGMOID_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SIGMOID_PARAMETER_H_ +#define MINDSPORE_NNACL_SIGMOID_PARAMETER_H_ #include "nnacl/op_base.h" @@ -38,4 +38,4 @@ typedef struct SigmoidParameter { int element_num; } SigmoidParameter; -#endif // MINDSPORE_LITE_NNACL_SIGMOID_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SIGMOID_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/skip_gram_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/skip_gram_parameter.h similarity index 83% rename from mindspore/lite/nnacl/skip_gram_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/skip_gram_parameter.h index 26d3c28cbfb..fa4f9892945 100644 --- a/mindspore/lite/nnacl/skip_gram_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/skip_gram_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SKIP_GRAM_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SKIP_GRAM_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SKIP_GRAM_PARAMETER_H_ +#define MINDSPORE_NNACL_SKIP_GRAM_PARAMETER_H_ #include "nnacl/op_base.h" @@ -27,4 +27,4 @@ typedef struct SkipGramParameter { int ngram_size; } SkipGramParameter; -#endif // MINDSPORE_LITE_NNACL_SKIP_GRAM_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SKIP_GRAM_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/slice_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/slice_parameter.h similarity index 88% rename from mindspore/lite/nnacl/slice_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/slice_parameter.h index d3627965e5e..0a99214bdd7 100644 --- a/mindspore/lite/nnacl/slice_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/slice_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SLICE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SLICE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SLICE_PARAMETER_H_ +#define MINDSPORE_NNACL_SLICE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -42,4 +42,4 @@ typedef struct SliceParameter { int32_t param_length_; } SliceParameter; -#endif // MINDSPORE_LITE_NNACL_SLICE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SLICE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/softmax_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/softmax_parameter.h similarity index 85% rename from mindspore/lite/nnacl/softmax_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/softmax_parameter.h index 902ffb7485b..04b978fd683 100644 --- a/mindspore/lite/nnacl/softmax_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/softmax_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SOFTMAX_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SOFTMAX_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SOFTMAX_PARAMETER_H_ +#define MINDSPORE_NNACL_SOFTMAX_PARAMETER_H_ #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ typedef struct SoftmaxParameter { int n_dim_; } SoftmaxParameter; -#endif // MINDSPORE_LITE_NNACL_SOFTMAX_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SOFTMAX_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/space_to_depth_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/space_to_depth_parameter.h similarity index 100% rename from mindspore/lite/nnacl/space_to_depth_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/space_to_depth_parameter.h diff --git a/mindspore/lite/nnacl/sparse_to_dense_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sparse_to_dense_parameter.h similarity index 82% rename from mindspore/lite/nnacl/sparse_to_dense_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sparse_to_dense_parameter.h index 41c0e22087a..783eec124a9 100644 --- a/mindspore/lite/nnacl/sparse_to_dense_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/sparse_to_dense_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ +#define MINDSPORE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -28,4 +28,4 @@ typedef struct SparseToDenseParameter { int thread_num_; } SparseToDenseParameter; -#endif // MINDSPORE_LITE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SPARSE_TO_DENSE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/splice_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/splice_parameter.h similarity index 85% rename from mindspore/lite/nnacl/splice_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/splice_parameter.h index 8063960af7e..b20460860fd 100644 --- a/mindspore/lite/nnacl/splice_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/splice_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPLICE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SPLICE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SPLICE_PARAMETER_H_ +#define MINDSPORE_NNACL_SPLICE_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct SpliceParameter { OpParameter op_parameter_; @@ -26,4 +26,4 @@ typedef struct SpliceParameter { int *forward_indexes_; int output_dim_; } SpliceParameter; -#endif // MINDSPORE_LITE_NNACL_SPLICE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SPLICE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/split_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/split_parameter.h similarity index 88% rename from mindspore/lite/nnacl/split_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/split_parameter.h index 7eeb4a6212c..5346bb87f9a 100644 --- a/mindspore/lite/nnacl/split_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/split_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SPLIT_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SPLIT_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SPLIT_PARAMETER_H_ +#define MINDSPORE_NNACL_SPLIT_PARAMETER_H_ #include "nnacl/op_base.h" @@ -44,4 +44,4 @@ typedef struct SplitParameter { int split_count_; } SplitParameter; -#endif // MINDSPORE_LITE_NNACL_SPLIT_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SPLIT_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/squeeze_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/squeeze_parameter.h similarity index 88% rename from mindspore/lite/nnacl/squeeze_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/squeeze_parameter.h index 77a419aa12d..a5b47bf0c73 100644 --- a/mindspore/lite/nnacl/squeeze_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/squeeze_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_SQUEEZE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_SQUEEZE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_SQUEEZE_PARAMETER_H_ +#define MINDSPORE_NNACL_SQUEEZE_PARAMETER_H_ #include "nnacl/op_base.h" #include "nnacl/int8/quantize.h" @@ -43,4 +43,4 @@ typedef struct SqueezeParameter { SqueezeQuantArg quant_arg; } SqueezeParameter; -#endif // MINDSPORE_LITE_NNACL_SQUEEZE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_SQUEEZE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/stack_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/stack_parameter.h similarity index 83% rename from mindspore/lite/nnacl/stack_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/stack_parameter.h index 1f714aad5a2..d713e74bd57 100644 --- a/mindspore/lite/nnacl/stack_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/stack_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STACK_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_STACK_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_STACK_PARAMETER_H_ +#define MINDSPORE_NNACL_STACK_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct StackParameter { @@ -24,4 +24,4 @@ typedef struct StackParameter { int32_t axis_; } StackParameter; -#endif // MINDSPORE_LITE_NNACL_STACK_PARAMETER_H_ +#endif // MINDSPORE_NNACL_STACK_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/strided_slice_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/strided_slice_parameter.h similarity index 86% rename from mindspore/lite/nnacl/strided_slice_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/strided_slice_parameter.h index 91fa2d65713..173e846f6ae 100644 --- a/mindspore/lite/nnacl/strided_slice_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/strided_slice_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_STRIDED_SLICE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_STRIDED_SLICE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_STRIDED_SLICE_PARAMETER_H_ +#define MINDSPORE_NNACL_STRIDED_SLICE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -40,4 +40,4 @@ typedef struct StridedSliceParameter { int shrinkAxisMask_; } StridedSliceParameter; -#endif // MINDSPORE_LITE_NNACL_STRIDED_SLICE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_STRIDED_SLICE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/tensor_c.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensor_c.h similarity index 86% rename from mindspore/lite/nnacl/tensor_c.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensor_c.h index 482bd361f6f..42b419c9c87 100644 --- a/mindspore/lite/nnacl/tensor_c.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensor_c.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSOR_C_H_ -#define MINDSPORE_LITE_NNACL_TENSOR_C_H_ +#ifndef MINDSPORE_NNACL_TENSOR_C_H_ +#define MINDSPORE_NNACL_TENSOR_C_H_ #include "nnacl/op_base.h" typedef struct TensorC { @@ -26,4 +26,4 @@ typedef struct TensorC { int shape_[MAX_SHAPE_SIZE]; } TensorC; -#endif // MINDSPORE_LITE_NNACL_TENSOR_C_H_ +#endif // MINDSPORE_NNACL_TENSOR_C_H_ diff --git a/mindspore/lite/nnacl/tensorlist_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensorlist_parameter.h similarity index 83% rename from mindspore/lite/nnacl/tensorlist_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensorlist_parameter.h index 0cf81569135..27e5c6b619a 100644 --- a/mindspore/lite/nnacl/tensorlist_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/tensorlist_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TENSORLIST_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_TENSORLIST_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_TENSORLIST_PARAMETER_H_ +#define MINDSPORE_NNACL_TENSORLIST_PARAMETER_H_ #include "nnacl/op_base.h" @@ -29,4 +29,4 @@ typedef struct TensorListParameter { int num_element_; } TensorListParameter; -#endif // MINDSPORE_LITE_NNACL_ARG_TENSORLIST_PARAMETER_H_ +#endif // MINDSPORE_NNACL_ARG_TENSORLIST_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/transpose.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/transpose.h similarity index 88% rename from mindspore/lite/nnacl/transpose.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/transpose.h index b69ddabfb18..6db866f982b 100644 --- a/mindspore/lite/nnacl/transpose.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/transpose.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_TRANSPOSE_H_ -#define MINDSPORE_LITE_NNACL_TRANSPOSE_H_ +#ifndef MINDSPORE_NNACL_TRANSPOSE_H_ +#define MINDSPORE_NNACL_TRANSPOSE_H_ #include "nnacl/op_base.h" @@ -37,4 +37,4 @@ typedef struct TransposeParameter { int data_size_; } TransposeParameter; -#endif // MINDSPORE_LITE_NNACL_TRANSPOSE_H_ +#endif // MINDSPORE_NNACL_TRANSPOSE_H_ diff --git a/mindspore/lite/nnacl/unsqueeze_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unsqueeze_parameter.h similarity index 88% rename from mindspore/lite/nnacl/unsqueeze_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unsqueeze_parameter.h index e543d27209e..a598ac395b8 100644 --- a/mindspore/lite/nnacl/unsqueeze_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unsqueeze_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSQUEEZE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_UNSQUEEZE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_UNSQUEEZE_PARAMETER_H_ +#define MINDSPORE_NNACL_UNSQUEEZE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -45,4 +45,4 @@ typedef struct UnSqueezeParameter { int thread_count_; } UnSqueezeParameter; -#endif // MINDSPORE_LITE_NNACL_UNSQUEEZE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_UNSQUEEZE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/unstack_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unstack_parameter.h similarity index 84% rename from mindspore/lite/nnacl/unstack_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unstack_parameter.h index 09471839f61..fa52f4a5bd6 100644 --- a/mindspore/lite/nnacl/unstack_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/unstack_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UNSTACK_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_UNSTACK_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_UNSTACK_PARAMETER_H_ +#define MINDSPORE_NNACL_UNSTACK_PARAMETER_H_ #include "nnacl/op_base.h" @@ -31,4 +31,4 @@ typedef struct UnstackParameter { int after_dims_; } UnstackParameter; -#endif // MINDSPORE_LITE_NNACL_UNSTACK_PARAMETER_H_ +#endif // MINDSPORE_NNACL_UNSTACK_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/upsample_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/upsample_parameter.h similarity index 83% rename from mindspore/lite/nnacl/upsample_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/upsample_parameter.h index ab50e51c83f..5f328fbe78a 100644 --- a/mindspore/lite/nnacl/upsample_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/upsample_parameter.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_UPSAMPLE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_UPSAMPLE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_UPSAMPLE_PARAMETER_H_ +#define MINDSPORE_NNACL_UPSAMPLE_PARAMETER_H_ #include "nnacl/op_base.h" typedef struct { @@ -26,4 +26,4 @@ typedef struct { int method_; // 0 for bilinear; 1 for nearest } UpsampleParameter; -#endif // MINDSPORE_LITE_NNACL_UPSAMPLE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_UPSAMPLE_PARAMETER_H_ diff --git a/mindspore/lite/nnacl/where_parameter.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/where_parameter.h similarity index 85% rename from mindspore/lite/nnacl/where_parameter.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/where_parameter.h index 9480d6e2fe2..73481b7b490 100644 --- a/mindspore/lite/nnacl/where_parameter.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/where_parameter.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef MINDSPORE_LITE_NNACL_WHERE_PARAMETER_H_ -#define MINDSPORE_LITE_NNACL_WHERE_PARAMETER_H_ +#ifndef MINDSPORE_NNACL_WHERE_PARAMETER_H_ +#define MINDSPORE_NNACL_WHERE_PARAMETER_H_ #include "nnacl/op_base.h" @@ -32,4 +32,4 @@ typedef struct WhereParameter { int thread_num_; } WhereParameter; -#endif // MINDSPORE_LITE_NNACL_WHERE_PARAMETER_H_ +#endif // MINDSPORE_NNACL_WHERE_PARAMETER_H_ diff --git a/mindspore/lite/CMakeLists.txt b/mindspore/lite/CMakeLists.txt index 07be73fc500..37f1affff21 100644 --- a/mindspore/lite/CMakeLists.txt +++ b/mindspore/lite/CMakeLists.txt @@ -276,7 +276,7 @@ if(BUILD_MINDDATA STREQUAL "lite_cv") endif() add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src) -add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nnacl) +add_subdirectory(${CCSRC_DIR}/backend/kernel_compiler/cpu/nnacl build) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/micro/coder) if(NOT APPLE AND ENABLE_TOOLS) if(SUPPORT_TRAIN) diff --git a/mindspore/lite/micro/cmake/file_list.cmake b/mindspore/lite/micro/cmake/file_list.cmake index 1c6c316d942..8777af06621 100644 --- a/mindspore/lite/micro/cmake/file_list.cmake +++ b/mindspore/lite/micro/cmake/file_list.cmake @@ -176,115 +176,117 @@ set(LITE_SRC ### tools ${LITE_DIR}/tools/common/flag_parser.cc ) + +set(NNACL_DIR ${TOP_DIR}/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl) set(LITE_KERNEL_SRC ### nnacl - ${LITE_DIR}/nnacl/common_func.c - ${LITE_DIR}/nnacl/base/minimal_filtering_generator.c - ${LITE_DIR}/nnacl/base/arithmetic_base.c - ${LITE_DIR}/nnacl/base/slice_base.c - ${LITE_DIR}/nnacl/fp32/winograd_utils.c - ${LITE_DIR}/nnacl/fp32/pack_fp32.c - ${LITE_DIR}/nnacl/int8/quantize.c - ${LITE_DIR}/nnacl/int8/pack_int8.c - ${LITE_DIR}/nnacl/int8/matmul_int8.c - ${LITE_DIR}/nnacl/int8/fixed_point.c - ${LITE_DIR}/nnacl/fp32/matmul_fp32.c - ${LITE_DIR}/nnacl/int8/arithmetic_int8.c - ${LITE_DIR}/nnacl/int8/add_int8.c - ${LITE_DIR}/nnacl/int8/concat_int8.c - ${LITE_DIR}/nnacl/int8/conv_int8.c - ${LITE_DIR}/nnacl/int8/conv3x3_int8.c - ${LITE_DIR}/nnacl/int8/conv1x1_int8.c - ${LITE_DIR}/nnacl/base/conv1x1_base.c - ${LITE_DIR}/nnacl/int8/conv_depthwise_int8.c - ${LITE_DIR}/nnacl/int8/deconv_int8.c - ${LITE_DIR}/nnacl/int8/common_func_int8.c - ${LITE_DIR}/nnacl/int8/slice_int8.c - ${LITE_DIR}/nnacl/int8/batchnorm_int8.c - ${LITE_DIR}/nnacl/int8/sub_int8.c - ${LITE_DIR}/nnacl/int8/quant_dtype_cast_int8.c - ${LITE_DIR}/nnacl/int8/sigmoid_int8.c - ${LITE_DIR}/nnacl/int8/resize_int8.c + ${NNACL_DIR}/common_func.c + ${NNACL_DIR}/base/minimal_filtering_generator.c + ${NNACL_DIR}/base/arithmetic_base.c + ${NNACL_DIR}/base/slice_base.c + ${NNACL_DIR}/fp32/winograd_utils.c + ${NNACL_DIR}/fp32/pack_fp32.c + ${NNACL_DIR}/int8/quantize.c + ${NNACL_DIR}/int8/pack_int8.c + ${NNACL_DIR}/int8/matmul_int8.c + ${NNACL_DIR}/int8/fixed_point.c + ${NNACL_DIR}/fp32/matmul_fp32.c + ${NNACL_DIR}/int8/arithmetic_int8.c + ${NNACL_DIR}/int8/add_int8.c + ${NNACL_DIR}/int8/concat_int8.c + ${NNACL_DIR}/int8/conv_int8.c + ${NNACL_DIR}/int8/conv3x3_int8.c + ${NNACL_DIR}/int8/conv1x1_int8.c + ${NNACL_DIR}/base/conv1x1_base.c + ${NNACL_DIR}/int8/conv_depthwise_int8.c + ${NNACL_DIR}/int8/deconv_int8.c + ${NNACL_DIR}/int8/common_func_int8.c + ${NNACL_DIR}/int8/slice_int8.c + ${NNACL_DIR}/int8/batchnorm_int8.c + ${NNACL_DIR}/int8/sub_int8.c + ${NNACL_DIR}/int8/quant_dtype_cast_int8.c + ${NNACL_DIR}/int8/sigmoid_int8.c + ${NNACL_DIR}/int8/resize_int8.c ### infer - ${LITE_DIR}/nnacl/infer/adam_infer.c - ${LITE_DIR}/nnacl/infer/add_sub_grad_infer.c - ${LITE_DIR}/nnacl/infer/addn_infer.c - ${LITE_DIR}/nnacl/infer/apply_momentum_infer.c - ${LITE_DIR}/nnacl/infer/argmin_max_infer.c - ${LITE_DIR}/nnacl/infer/arithmetic_compare_infer.c - ${LITE_DIR}/nnacl/infer/arithmetic_grad_infer.c - ${LITE_DIR}/nnacl/infer/arithmetic_infer.c - ${LITE_DIR}/nnacl/infer/assign_add_infer.c - ${LITE_DIR}/nnacl/infer/assign_infer.c - ${LITE_DIR}/nnacl/infer/batch_to_space_infer.c - ${LITE_DIR}/nnacl/infer/bias_grad_infer.c - ${LITE_DIR}/nnacl/infer/binary_cross_entropy_infer.c - ${LITE_DIR}/nnacl/infer/bn_grad_infer.c - ${LITE_DIR}/nnacl/infer/broadcast_to_infer.c - ${LITE_DIR}/nnacl/infer/cast_infer.c - ${LITE_DIR}/nnacl/infer/common_infer.c - ${LITE_DIR}/nnacl/infer/concat_infer.c - ${LITE_DIR}/nnacl/infer/constant_of_shape_infer.c - ${LITE_DIR}/nnacl/infer/conv2d_grad_filter_infer.c - ${LITE_DIR}/nnacl/infer/conv2d_grad_input_infer.c - ${LITE_DIR}/nnacl/infer/conv2d_infer.c - ${LITE_DIR}/nnacl/infer/deconv2d_infer.c - ${LITE_DIR}/nnacl/infer/dedepthwise_conv2d_infer.c - ${LITE_DIR}/nnacl/infer/depthwise_conv2d_infer.c - ${LITE_DIR}/nnacl/infer/detection_post_process_infer.c - ${LITE_DIR}/nnacl/infer/expand_dims_infer.c - ${LITE_DIR}/nnacl/infer/fill_infer.c - ${LITE_DIR}/nnacl/infer/full_connection_infer.c - ${LITE_DIR}/nnacl/infer/fused_batchnorm_infer.c - ${LITE_DIR}/nnacl/infer/gather_infer.c - ${LITE_DIR}/nnacl/infer/gather_nd_infer.c - ${LITE_DIR}/nnacl/infer/group_conv2d_grad_input_infer.c - ${LITE_DIR}/nnacl/infer/infer_register.c - ${LITE_DIR}/nnacl/infer/lsh_projection_infer.c - ${LITE_DIR}/nnacl/infer/lstm_infer.c - ${LITE_DIR}/nnacl/infer/matmul_infer.c - ${LITE_DIR}/nnacl/infer/max_min_grad_infer.c - ${LITE_DIR}/nnacl/infer/mean_infer.c - ${LITE_DIR}/nnacl/infer/pooling_grad_infer.c - ${LITE_DIR}/nnacl/infer/pooling_infer.c - ${LITE_DIR}/nnacl/infer/power_infer.c - ${LITE_DIR}/nnacl/infer/quant_dtype_cast_infer.c - ${LITE_DIR}/nnacl/infer/range_infer.c - ${LITE_DIR}/nnacl/infer/rank_infer.c - ${LITE_DIR}/nnacl/infer/reduce_infer.c - ${LITE_DIR}/nnacl/infer/reshape_infer.c - ${LITE_DIR}/nnacl/infer/resize_infer.c - ${LITE_DIR}/nnacl/infer/roi_pooling_infer.c - ${LITE_DIR}/nnacl/infer/select_infer.c - ${LITE_DIR}/nnacl/infer/sgd_infer.c - ${LITE_DIR}/nnacl/infer/shape_infer.c - ${LITE_DIR}/nnacl/infer/slice_infer.c - ${LITE_DIR}/nnacl/infer/softmax_cross_entropy_infer.c - ${LITE_DIR}/nnacl/infer/softmax_infer.c - ${LITE_DIR}/nnacl/infer/space_to_batch_infer.c - ${LITE_DIR}/nnacl/infer/space_to_batch_nd_infer.c - ${LITE_DIR}/nnacl/infer/space_to_depth_infer.c - ${LITE_DIR}/nnacl/infer/sparse_softmax_cross_entropy_with_logits_infer.c - ${LITE_DIR}/nnacl/infer/sparse_to_dense_infer.c - ${LITE_DIR}/nnacl/infer/split_infer.c - ${LITE_DIR}/nnacl/infer/squeeze_infer.c - ${LITE_DIR}/nnacl/infer/strided_slice_grad_infer.c - ${LITE_DIR}/nnacl/infer/strided_slice_infer.c - ${LITE_DIR}/nnacl/infer/tile_infer.c - ${LITE_DIR}/nnacl/infer/topk_infer.c - ${LITE_DIR}/nnacl/infer/transpose_infer.c - ${LITE_DIR}/nnacl/infer/unsorted_segment_sum_infer.c - ${LITE_DIR}/nnacl/infer/unsqueeze_infer.c - ${LITE_DIR}/nnacl/infer/where_infer.c - ${LITE_DIR}/nnacl/infer/while_infer.c - ${LITE_DIR}/nnacl/infer/splice_infer.c + ${NNACL_DIR}/infer/adam_infer.c + ${NNACL_DIR}/infer/add_sub_grad_infer.c + ${NNACL_DIR}/infer/addn_infer.c + ${NNACL_DIR}/infer/apply_momentum_infer.c + ${NNACL_DIR}/infer/argmin_max_infer.c + ${NNACL_DIR}/infer/arithmetic_compare_infer.c + ${NNACL_DIR}/infer/arithmetic_grad_infer.c + ${NNACL_DIR}/infer/arithmetic_infer.c + ${NNACL_DIR}/infer/assign_add_infer.c + ${NNACL_DIR}/infer/assign_infer.c + ${NNACL_DIR}/infer/batch_to_space_infer.c + ${NNACL_DIR}/infer/bias_grad_infer.c + ${NNACL_DIR}/infer/binary_cross_entropy_infer.c + ${NNACL_DIR}/infer/bn_grad_infer.c + ${NNACL_DIR}/infer/broadcast_to_infer.c + ${NNACL_DIR}/infer/cast_infer.c + ${NNACL_DIR}/infer/common_infer.c + ${NNACL_DIR}/infer/concat_infer.c + ${NNACL_DIR}/infer/constant_of_shape_infer.c + ${NNACL_DIR}/infer/conv2d_grad_filter_infer.c + ${NNACL_DIR}/infer/conv2d_grad_input_infer.c + ${NNACL_DIR}/infer/conv2d_infer.c + ${NNACL_DIR}/infer/deconv2d_infer.c + ${NNACL_DIR}/infer/dedepthwise_conv2d_infer.c + ${NNACL_DIR}/infer/depthwise_conv2d_infer.c + ${NNACL_DIR}/infer/detection_post_process_infer.c + ${NNACL_DIR}/infer/expand_dims_infer.c + ${NNACL_DIR}/infer/fill_infer.c + ${NNACL_DIR}/infer/full_connection_infer.c + ${NNACL_DIR}/infer/fused_batchnorm_infer.c + ${NNACL_DIR}/infer/gather_infer.c + ${NNACL_DIR}/infer/gather_nd_infer.c + ${NNACL_DIR}/infer/group_conv2d_grad_input_infer.c + ${NNACL_DIR}/infer/infer_register.c + ${NNACL_DIR}/infer/lsh_projection_infer.c + ${NNACL_DIR}/infer/lstm_infer.c + ${NNACL_DIR}/infer/matmul_infer.c + ${NNACL_DIR}/infer/max_min_grad_infer.c + ${NNACL_DIR}/infer/mean_infer.c + ${NNACL_DIR}/infer/pooling_grad_infer.c + ${NNACL_DIR}/infer/pooling_infer.c + ${NNACL_DIR}/infer/power_infer.c + ${NNACL_DIR}/infer/quant_dtype_cast_infer.c + ${NNACL_DIR}/infer/range_infer.c + ${NNACL_DIR}/infer/rank_infer.c + ${NNACL_DIR}/infer/reduce_infer.c + ${NNACL_DIR}/infer/reshape_infer.c + ${NNACL_DIR}/infer/resize_infer.c + ${NNACL_DIR}/infer/roi_pooling_infer.c + ${NNACL_DIR}/infer/select_infer.c + ${NNACL_DIR}/infer/sgd_infer.c + ${NNACL_DIR}/infer/shape_infer.c + ${NNACL_DIR}/infer/slice_infer.c + ${NNACL_DIR}/infer/softmax_cross_entropy_infer.c + ${NNACL_DIR}/infer/softmax_infer.c + ${NNACL_DIR}/infer/space_to_batch_infer.c + ${NNACL_DIR}/infer/space_to_batch_nd_infer.c + ${NNACL_DIR}/infer/space_to_depth_infer.c + ${NNACL_DIR}/infer/sparse_softmax_cross_entropy_with_logits_infer.c + ${NNACL_DIR}/infer/sparse_to_dense_infer.c + ${NNACL_DIR}/infer/split_infer.c + ${NNACL_DIR}/infer/squeeze_infer.c + ${NNACL_DIR}/infer/strided_slice_grad_infer.c + ${NNACL_DIR}/infer/strided_slice_infer.c + ${NNACL_DIR}/infer/tile_infer.c + ${NNACL_DIR}/infer/topk_infer.c + ${NNACL_DIR}/infer/transpose_infer.c + ${NNACL_DIR}/infer/unsorted_segment_sum_infer.c + ${NNACL_DIR}/infer/unsqueeze_infer.c + ${NNACL_DIR}/infer/where_infer.c + ${NNACL_DIR}/infer/while_infer.c + ${NNACL_DIR}/infer/splice_infer.c ) #### sse if("${X86_64_SIMD}" STREQUAL "sse") set(SSE_SRC - ${LITE_DIR}/nnacl/intrinsics/sse/sse_common.c - ${LITE_DIR}/nnacl/intrinsics/sse/MatMul_Sse.c + ${NNACL_DIR}/intrinsics/sse/sse_common.c + ${NNACL_DIR}/intrinsics/sse/MatMul_Sse.c ) set_property(SOURCE ${SSE_SRC} PROPERTY LANGUAGE C) endif() @@ -294,10 +296,10 @@ if("${X86_64_SIMD}" STREQUAL "avx") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1 -mavx -mavx2") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1 -mavx -mavx2") set(AVX_SRC - ${LITE_DIR}/nnacl/intrinsics/avx/common_utils.c - ${LITE_DIR}/nnacl/intrinsics/sse/sse_common.c - ${LITE_DIR}/nnacl/intrinsics/sse/MatMul_Sse.c - ${LITE_DIR}/nnacl/assembly/avx/MatmulAvx.S + ${NNACL_DIR}/intrinsics/avx/common_utils.c + ${NNACL_DIR}/intrinsics/sse/sse_common.c + ${NNACL_DIR}/intrinsics/sse/MatMul_Sse.c + ${NNACL_DIR}/assembly/avx/MatmulAvx.S ) set_property(SOURCE ${AVX_SRC} PROPERTY LANGUAGE C) endif() diff --git a/mindspore/lite/micro/coder/CMakeLists.txt b/mindspore/lite/micro/coder/CMakeLists.txt index 3463649c78d..4c53e33503b 100644 --- a/mindspore/lite/micro/coder/CMakeLists.txt +++ b/mindspore/lite/micro/coder/CMakeLists.txt @@ -18,6 +18,7 @@ include_directories(${3RD_DIR}/flatbuffers/include) #include ms include_directories(${TOP_DIR}/) include_directories(${TOP_DIR}/mindspore/core/) +include_directories(${TOP_DIR}/mindspore/ccsrc/backend/kernel_compiler/cpu) include_directories(${LITE_DIR}) include_directories(${MICRO_DIR}) #include coder diff --git a/mindspore/lite/src/CMakeLists.txt b/mindspore/lite/src/CMakeLists.txt index f47438f8397..b4c68eae56c 100644 --- a/mindspore/lite/src/CMakeLists.txt +++ b/mindspore/lite/src/CMakeLists.txt @@ -2,9 +2,7 @@ add_compile_definitions(USE_ANDROID_LOG) if(ENABLE_V0) add_definitions(-DENABLE_V0) endif() -set(LITE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..) -include_directories(${LITE_DIR}/nnacl/) -include_directories(${LITE_DIR}/nnacl/optimize) +include_directories(${CCSRC_DIR}/backend/kernel_compiler/cpu) if(PLATFORM_ARM32 OR PLATFORM_ARM64) #for performance diff --git a/mindspore/lite/src/runtime/kernel/arm/fp16/power_fp16.h b/mindspore/lite/src/runtime/kernel/arm/fp16/power_fp16.h index 9fb53f363b2..b59d18edd91 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp16/power_fp16.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp16/power_fp16.h @@ -20,7 +20,7 @@ #include #include "src/lite_kernel.h" #include "include/context.h" -#include "mindspore/lite/nnacl/fp16/power_fp16.h" +#include "nnacl/fp16/power_fp16.h" namespace mindspore::kernel { class PowerFp16CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.cc b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.cc index e8103865424..3eed8ce64e7 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.cc @@ -18,7 +18,7 @@ #include #include "src/runtime/kernel/arm/fp32/l2_norm_fp32.h" #include "include/errorcode.h" -#include "mindspore/lite/nnacl/fp32/l2_norm_fp32.h" +#include "nnacl/fp32/l2_norm_fp32.h" #include "src/runtime/runtime_api.h" using mindspore::kernel::KERNEL_ARCH::kCPU; diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/non_max_suppression_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/non_max_suppression_fp32.h index 905c8338404..7b75f3b16ae 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/non_max_suppression_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/non_max_suppression_fp32.h @@ -19,7 +19,7 @@ #include #include #include "src/lite_kernel.h" -#include "mindspore/lite/nnacl/non_max_suppression_parameter.h" +#include "nnacl/non_max_suppression_parameter.h" using mindspore::lite::RET_OK; diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/power_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/power_fp32.h index 127582dda9e..fdd754c7cff 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/power_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/power_fp32.h @@ -20,7 +20,7 @@ #include #include "src/lite_kernel.h" #include "include/context.h" -#include "mindspore/lite/nnacl/fp32/power_fp32.h" +#include "nnacl/fp32/power_fp32.h" namespace mindspore::kernel { class PowerCPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/scatter_nd_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/scatter_nd_fp32.h index c91ab685828..f0a1eb5574c 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/scatter_nd_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/scatter_nd_fp32.h @@ -19,7 +19,7 @@ #include #include "src/lite_kernel.h" -#include "mindspore/lite/nnacl/fp32/scatter_nd_fp32.h" +#include "nnacl/fp32/scatter_nd_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/skip_gram_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/skip_gram_fp32.h index 2ba154862b2..22b5a854509 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/skip_gram_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/skip_gram_fp32.h @@ -19,7 +19,7 @@ #include #include "src/lite_kernel.h" -#include "mindspore/lite/nnacl/skip_gram_parameter.h" +#include "nnacl/skip_gram_parameter.h" #include "src/common/string_util.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.cc b/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.cc index 24d9d14e608..57f317b2f91 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.cc @@ -14,12 +14,10 @@ * limitations under the License. */ #include "src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.h" - #include #include - #include "include/errorcode.h" -#include "mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h" +#include "nnacl/fp32/sparse_to_dense_fp32.h" #include "schema/model_generated.h" #include "schema/ops_generated.h" #include "src/kernel_registry.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.h index 3b6e44a1f65..d3a2e35603e 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32.h @@ -20,7 +20,7 @@ #include "src/lite_kernel.h" #include "include/context.h" -#include "mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h" +#include "nnacl/fp32/sparse_to_dense_fp32.h" #include "src/runtime/kernel/arm/base/layout_transform.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.cc b/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.cc index 0f940a3b706..8c23b32b46a 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.cc @@ -17,7 +17,7 @@ #include #include #include "schema/model_generated.h" -#include "mindspore/lite/nnacl/fp32/where_fp32.h" +#include "nnacl/fp32/where_fp32.h" #include "src/kernel_registry.h" #include "include/errorcode.h" #include "src/runtime/runtime_api.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.h index d4ed588c760..34545cdcc20 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/where_fp32.h @@ -20,7 +20,7 @@ #include "src/lite_kernel.h" #include "include/context.h" -#include "mindspore/lite/nnacl/fp32/where_fp32.h" +#include "nnacl/fp32/where_fp32.h" #include "src/runtime/kernel/arm/base/layout_transform.h" using mindspore::lite::InnerContext; diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/zeroslike_fp32.cc b/mindspore/lite/src/runtime/kernel/arm/fp32/zeroslike_fp32.cc index abee296f3d4..960090b7602 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/zeroslike_fp32.cc +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/zeroslike_fp32.cc @@ -16,7 +16,7 @@ #include "src/runtime/kernel/arm/fp32/zeroslike_fp32.h" #include "schema/model_generated.h" -#include "mindspore/lite/nnacl/base/zeroslike_base.h" +#include "nnacl/base/zeroslike_base.h" #include "src/kernel_registry.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/argminmax_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/argminmax_int8.h index 5031240b60a..5b5fbc6eb59 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/argminmax_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/argminmax_int8.h @@ -17,7 +17,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_INT8_ARGMINMAX_INT8_H_ #include -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "nnacl/int8/arg_min_max_int8.h" #include "nnacl/common_func.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/depth_to_space_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/depth_to_space_int8.h index 06512bbf829..b986c6f057f 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/depth_to_space_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/depth_to_space_int8.h @@ -20,7 +20,7 @@ #include "include/errorcode.h" #include "nnacl/base/depth_to_space_base.h" #include "nnacl/int8/depth_to_space_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "src/runtime/kernel/arm/base/depth_to_space_base.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/gatherNd_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/gatherNd_int8.h index d54c16fa9f7..485e6a945cc 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/gatherNd_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/gatherNd_int8.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_INT8_GATHERND_INT8_H_ #include -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "src/lite_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.cc b/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.cc index 844425633a9..5d38262939a 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.cc +++ b/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.cc @@ -17,7 +17,7 @@ #include #include "nnacl/gather_parameter.h" #include "nnacl/int8/gather_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "schema/model_generated.h" #include "src/kernel_registry.h" #include "src/runtime/runtime_api.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.h index 57f50969426..775d0dbbb84 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/gather_int8.h @@ -19,7 +19,7 @@ #include #include "nnacl/gather_parameter.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "src/lite_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/hswish_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/hswish_int8.h index 655240a8e26..1d7011f11aa 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/hswish_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/hswish_int8.h @@ -20,7 +20,7 @@ #include #include "src/lite_kernel.h" #include "nnacl/int8/hswish_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" namespace mindspore::kernel { class HswishInt8CPUKernel : public LiteKernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/matmul_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/matmul_int8.h index 2f4d5ac81d8..46dc8aa15fc 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/matmul_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/matmul_int8.h @@ -20,7 +20,7 @@ #include #include "include/context.h" #include "nnacl/matmul_parameter.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "src/lite_kernel.h" #include "src/runtime/kernel/arm/int8/matmul_base_int8.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/power_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/power_int8.h index 9bb2e7ce2a5..af1aba98035 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/power_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/power_int8.h @@ -19,7 +19,7 @@ #include #include "src/lite_kernel.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "nnacl/power_parameter.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.cc b/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.cc index 86ca7c7c663..aef43355829 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.cc +++ b/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.cc @@ -18,7 +18,7 @@ #include "schema/model_generated.h" #include "src/kernel_registry.h" #include "src/runtime/runtime_api.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "nnacl/pack.h" #include "include/errorcode.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.h index bdeaf6da189..2f3d986bd7a 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/reduce_int8.h @@ -21,7 +21,7 @@ #include "src/lite_kernel.h" #include "nnacl/reduce_parameter.h" #include "nnacl/int8/reduce_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "src/runtime/kernel/arm/base/reduce_base.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/resize_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/resize_int8.h index 7a951e3ca89..0f92bf82e0f 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/resize_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/resize_int8.h @@ -19,7 +19,7 @@ #include #include "src/lite_kernel.h" #include "src/runtime/kernel/arm/base/resize_base.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" using mindspore::schema::PrimitiveType_Resize; using mindspore::schema::ResizeMethod; diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/sigmoid_int8.cc b/mindspore/lite/src/runtime/kernel/arm/int8/sigmoid_int8.cc index 7289577948e..0a7c8fdcf26 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/sigmoid_int8.cc +++ b/mindspore/lite/src/runtime/kernel/arm/int8/sigmoid_int8.cc @@ -18,7 +18,7 @@ #include #include #include "nnacl/int8/sigmoid_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "schema/model_generated.h" #include "src/kernel_registry.h" #include "src/runtime/runtime_api.h" diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/slice_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/slice_int8.h index f956f7a6238..ace2a64320f 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/slice_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/slice_int8.h @@ -19,7 +19,7 @@ #include #include "src/runtime/kernel/arm/base/slice_base.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" namespace mindspore::kernel { class SliceInt8CPUKernel : public SliceCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/softmax_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/softmax_int8.h index 62d83bf2f15..aec062c4eba 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/softmax_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/softmax_int8.h @@ -19,7 +19,7 @@ #include #include "src/runtime/kernel/arm/base/softmax_base.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" namespace mindspore::kernel { class SoftmaxInt8CPUKernel : public SoftmaxBaseCPUKernel { diff --git a/mindspore/lite/src/runtime/kernel/arm/int8/tanh_int8.h b/mindspore/lite/src/runtime/kernel/arm/int8/tanh_int8.h index 0be5e503d90..f1ef2ffefee 100644 --- a/mindspore/lite/src/runtime/kernel/arm/int8/tanh_int8.h +++ b/mindspore/lite/src/runtime/kernel/arm/int8/tanh_int8.h @@ -22,7 +22,7 @@ #include #include "src/lite_kernel.h" #include "nnacl/int8/tanh_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "include/errorcode.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h index aabe94beb7b..390327ebeea 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/fill.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_FILL_H_ #include -#include "mindspore/lite/nnacl/base/fill_base.h" +#include "nnacl/base/fill_base.h" #include "src/runtime/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h index 6efce285d13..9e821af4b03 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/power.h @@ -18,7 +18,7 @@ #define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_POWER_H_ #include -#include "mindspore/lite/nnacl/fp32/power_fp32.h" +#include "nnacl/fp32/power_fp32.h" #include "src/runtime/kernel/opencl/opencl_kernel.h" namespace mindspore::kernel { diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc b/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc index e34f05d8d02..c9aabf710d7 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/prelu.cc @@ -17,7 +17,7 @@ */ #include "src/runtime/kernel/opencl/kernel/prelu.h" -#include +#include #include #include #include "src/runtime/kernel/opencl/cl/prelu.cl.inc" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h index b29c1efb8b7..e563478e652 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/sparse_to_dense.h @@ -19,7 +19,7 @@ #include #include "src/runtime/kernel/opencl/opencl_kernel.h" -#include "mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h" +#include "nnacl/fp32/sparse_to_dense_fp32.h" namespace mindspore::kernel { diff --git a/mindspore/lite/test/CMakeLists.txt b/mindspore/lite/test/CMakeLists.txt index 6e8261515b3..f466970e3e4 100644 --- a/mindspore/lite/test/CMakeLists.txt +++ b/mindspore/lite/test/CMakeLists.txt @@ -2,9 +2,11 @@ set(TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..) set(TEST_DIR ${TOP_DIR}/mindspore/lite/test) set(LITE_DIR ${TOP_DIR}/mindspore/lite) set(CCSRC_DIR ${TOP_DIR}/mindspore/ccsrc) +set(NNACL_DIR ${TOP_DIR}/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl) set(CONVERTER_DIR ${TOP_DIR}/mindspore/lite/tools/converter) include_directories(${TOP_DIR}) include_directories(${TEST_DIR}) +include_directories(${TOP_DIR}/mindspore/ccsrc/backend/kernel_compiler/cpu) include(${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/external_libs/gtest.cmake) STRING(REPLACE " -fvisibility=hidden " " -fvisibility=default " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") @@ -28,15 +30,15 @@ file(GLOB KERNEL_OP_SRC ${LITE_DIR}/src/runtime/kernel/arm/fp32/*.cc ${LITE_DIR}/src/runtime/kernel/arm/int8/*.cc ${LITE_DIR}/src/runtime/kernel/arm/string/*.cc - ${LITE_DIR}/nnacl/*.c - ${LITE_DIR}/nnacl/fp32/*.c - ${LITE_DIR}/nnacl/int8/*.c - ${LITE_DIR}/nnacl/base/*.c - ${LITE_DIR}/nnacl/infer/*.c + ${NNACL_DIR}/*.c + ${NNACL_DIR}/fp32/*.c + ${NNACL_DIR}/int8/*.c + ${NNACL_DIR}/base/*.c + ${NNACL_DIR}/infer/*.c ) file(GLOB KERNEL_OP_TRAIN_SRC - ${LITE_DIR}/nnacl/fp32_grad/*.c + ${NNACL_DIR}/fp32_grad/*.c ${LITE_DIR}/src/runtime/kernel/arm/fp32_grad/*.cc ) @@ -45,8 +47,8 @@ if(SUPPORT_TRAIN) endif() if(PLATFORM_ARM64) # assembly - file(GLOB TEST_ASSEMBLY_SRC ${LITE_DIR}/nnacl/assembly/arm64/*.s - ${LITE_DIR}/nnacl/assembly/arm64/*.S) + file(GLOB TEST_ASSEMBLY_SRC ${NNACL_DIR}/assembly/arm64/*.s + ${NNACL_DIR}/assembly/arm64/*.S) set_property(SOURCE ${TEST_ASSEMBLY_SRC} PROPERTY LANGUAGE C) set(KERNEL_OP_SRC @@ -58,8 +60,8 @@ endif() if(PLATFORM_ARM32) # assembly file(GLOB TEST_ASSEMBLY_SRC - ${LITE_DIR}/nnacl/assembly/arm32/*.S - ${LITE_DIR}/nnacl/assembly/arm32/*.s) + ${NNACL_DIR}/assembly/arm32/*.S + ${NNACL_DIR}/assembly/arm32/*.s) set_property(SOURCE ${TEST_ASSEMBLY_SRC} PROPERTY LANGUAGE C) set(KERNEL_OP_SRC ${KERNEL_OP_SRC} @@ -68,7 +70,7 @@ if(PLATFORM_ARM32) endif() if("${X86_64_SIMD}" STREQUAL "sse") - file(GLOB TEST_ASSEMBLY_SRC ${LITE_DIR}/nnacl/intrinsics/sse/*.c) + file(GLOB TEST_ASSEMBLY_SRC ${NNACL_DIR}/intrinsics/sse/*.c) set_property(SOURCE ${TEST_ASSEMBLY_SRC} PROPERTY LANGUAGE C) set(KERNEL_OP_SRC ${KERNEL_OP_SRC} @@ -79,9 +81,9 @@ endif() if("${X86_64_SIMD}" STREQUAL "avx") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1 -mavx -mavx2") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.1 -mavx -mavx2") - file(GLOB TEST_ASSEMBLY_SRC ${LITE_DIR}/nnacl/intrinsics/sse/*.c - ${LITE_DIR}/nnacl/intrinsics/avx/*.c - ${LITE_DIR}/nnacl/assembly/avx/*.S) + file(GLOB TEST_ASSEMBLY_SRC ${NNACL_DIR}/intrinsics/sse/*.c + ${NNACL_DIR}/intrinsics/avx/*.c + ${NNACL_DIR}/assembly/avx/*.S) set_property(SOURCE ${TEST_ASSEMBLY_SRC} PROPERTY LANGUAGE C) set(KERNEL_OP_SRC ${KERNEL_OP_SRC} diff --git a/mindspore/lite/test/ut/nnacl/infer/adam_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/adam_infer_test.cc index 7f00dedb673..55091d50289 100644 --- a/mindspore/lite/test/ut/nnacl/infer/adam_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/adam_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/adam_infer.h" +#include "nnacl/infer/adam_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/addn_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/addn_infer_test.cc index 5b65fdd05d4..a969b23d02f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/addn_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/addn_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/addn_infer.h" +#include "nnacl/infer/addn_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/apply_momentum_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/apply_momentum_infer_test.cc index 67c651be96c..ea3233958ce 100644 --- a/mindspore/lite/test/ut/nnacl/infer/apply_momentum_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/apply_momentum_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/apply_momentum_infer.h" +#include "nnacl/infer/apply_momentum_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/argmax_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/argmax_infer_test.cc index 2547f245ab8..61714de7982 100644 --- a/mindspore/lite/test/ut/nnacl/infer/argmax_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/argmax_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/argmin_max_infer.h" +#include "nnacl/infer/argmin_max_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/argmin_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/argmin_infer_test.cc index 1131a85aff5..62686ba1d42 100644 --- a/mindspore/lite/test/ut/nnacl/infer/argmin_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/argmin_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/argmin_max_infer.h" +#include "nnacl/infer/argmin_max_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/arithmetic_compare_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/arithmetic_compare_infer_test.cc index 6100c0bd7e3..addd8ab093f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/arithmetic_compare_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/arithmetic_compare_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/arithmetic_compare_infer.h" +#include "nnacl/infer/arithmetic_compare_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/arithmetic_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/arithmetic_infer_test.cc index 2bc6ce81bf8..d950c790435 100644 --- a/mindspore/lite/test/ut/nnacl/infer/arithmetic_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/arithmetic_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/arithmetic_infer.h" +#include "nnacl/infer/arithmetic_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/assign_add_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/assign_add_infer_test.cc index 369b24cab7c..5e04900cdcc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/assign_add_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/assign_add_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/assign_add_infer.h" +#include "nnacl/infer/assign_add_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/assign_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/assign_infer_test.cc index cfbd434a4bd..dbb75e39fc7 100644 --- a/mindspore/lite/test/ut/nnacl/infer/assign_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/assign_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/assign_infer.h" +#include "nnacl/infer/assign_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/audio_spectrogram_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/audio_spectrogram_infer_test.cc index 58fb0d8f910..c55b0424a7e 100644 --- a/mindspore/lite/test/ut/nnacl/infer/audio_spectrogram_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/audio_spectrogram_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/audio_spectrogram_infer.h" +#include "nnacl/infer/audio_spectrogram_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/batch_to_space_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/batch_to_space_infer_test.cc index 080b67da0b4..6744e59e92b 100644 --- a/mindspore/lite/test/ut/nnacl/infer/batch_to_space_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/batch_to_space_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/batch_to_space_infer.h" +#include "nnacl/infer/batch_to_space_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/bias_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/bias_grad_infer_test.cc index d21f926c50a..c248e12f2e8 100644 --- a/mindspore/lite/test/ut/nnacl/infer/bias_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/bias_grad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/bias_grad_infer.h" +#include "nnacl/infer/bias_grad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/binary_cross_entropy_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/binary_cross_entropy_infer_test.cc index dbedc57bbf1..0ada9c4670b 100644 --- a/mindspore/lite/test/ut/nnacl/infer/binary_cross_entropy_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/binary_cross_entropy_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/binary_cross_entropy_infer.h" +#include "nnacl/infer/binary_cross_entropy_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/bn_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/bn_grad_infer_test.cc index 7c2e529e5e7..6ba5c140d8e 100644 --- a/mindspore/lite/test/ut/nnacl/infer/bn_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/bn_grad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/bn_grad_infer.h" +#include "nnacl/infer/bn_grad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/broadcast_to_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/broadcast_to_infer_test.cc index c212cc5c66d..875e903d10e 100644 --- a/mindspore/lite/test/ut/nnacl/infer/broadcast_to_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/broadcast_to_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/broadcast_to_infer.h" +#include "nnacl/infer/broadcast_to_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/cast_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/cast_infer_test.cc index fa2266d938a..07e260601ef 100644 --- a/mindspore/lite/test/ut/nnacl/infer/cast_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/cast_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/cast_infer.h" +#include "nnacl/infer/cast_infer.h" #include "nnacl/cast_parameter.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/concat_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/concat_infer_test.cc index 1f31eab3414..c928807a6dc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/concat_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/concat_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/concat_infer.h" +#include "nnacl/infer/concat_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/constant_of_shape_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/constant_of_shape_infer_test.cc index 356a7e100d3..c5472c26efd 100644 --- a/mindspore/lite/test/ut/nnacl/infer/constant_of_shape_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/constant_of_shape_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/constant_of_shape_infer.h" +#include "nnacl/infer/constant_of_shape_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_filter_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_filter_infer_test.cc index 99431a32dea..b521e064af8 100644 --- a/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_filter_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_filter_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/conv2d_grad_filter_infer.h" +#include "nnacl/infer/conv2d_grad_filter_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_input_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_input_infer_test.cc index b7f134f9bd4..6b9d6da691c 100644 --- a/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_input_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/conv2d_grad_input_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/conv2d_grad_input_infer.h" +#include "nnacl/infer/conv2d_grad_input_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/conv2d_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/conv2d_infer_test.cc index f9a018b7f12..8496cec6d9c 100644 --- a/mindspore/lite/test/ut/nnacl/infer/conv2d_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/conv2d_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/conv2d_infer.h" +#include "nnacl/infer/conv2d_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/crop_and_resize_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/crop_and_resize_infer_test.cc index a5e91a17113..1dec7f9015a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/crop_and_resize_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/crop_and_resize_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/crop_and_resize_infer.h" +#include "nnacl/infer/crop_and_resize_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/crop_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/crop_infer_test.cc index 195f5da3674..46138a8721b 100644 --- a/mindspore/lite/test/ut/nnacl/infer/crop_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/crop_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/crop_infer.h" +#include "nnacl/infer/crop_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/custom_extract_features_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/custom_extract_features_infer_test.cc index b5f2c672c05..fb746cb94c4 100644 --- a/mindspore/lite/test/ut/nnacl/infer/custom_extract_features_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/custom_extract_features_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/custom_extract_features_infer.h" +#include "nnacl/infer/custom_extract_features_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/custom_normalize_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/custom_normalize_infer_test.cc index 2d665eb3b88..cb8cbc6a789 100644 --- a/mindspore/lite/test/ut/nnacl/infer/custom_normalize_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/custom_normalize_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/custom_normalize_infer.h" +#include "nnacl/infer/custom_normalize_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/custom_predict_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/custom_predict_infer_test.cc index cf039eb5246..7c83c537ea5 100644 --- a/mindspore/lite/test/ut/nnacl/infer/custom_predict_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/custom_predict_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/custom_predict_infer.h" +#include "nnacl/infer/custom_predict_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/deconv2d_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/deconv2d_infer_test.cc index 8cbd8ac2c12..423297796f4 100644 --- a/mindspore/lite/test/ut/nnacl/infer/deconv2d_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/deconv2d_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/deconv2d_infer.h" +#include "nnacl/infer/deconv2d_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/dedepthwise_conv2d_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/dedepthwise_conv2d_infer_test.cc index 684b92b7a07..221df87c639 100644 --- a/mindspore/lite/test/ut/nnacl/infer/dedepthwise_conv2d_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/dedepthwise_conv2d_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/dedepthwise_conv2d_infer.h" +#include "nnacl/infer/dedepthwise_conv2d_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/depth_to_space_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/depth_to_space_infer_test.cc index fd818522a5f..ac29f68fffa 100644 --- a/mindspore/lite/test/ut/nnacl/infer/depth_to_space_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/depth_to_space_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/depth_to_space_infer.h" +#include "nnacl/infer/depth_to_space_infer.h" #include "src/tensor.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/depthwise_conv2d_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/depthwise_conv2d_infer_test.cc index c78c274617b..64fd5c0466f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/depthwise_conv2d_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/depthwise_conv2d_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/depthwise_conv2d_infer.h" +#include "nnacl/infer/depthwise_conv2d_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/detection_post_process_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/detection_post_process_infer_test.cc index c998bf68c5e..733af06b60a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/detection_post_process_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/detection_post_process_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/detection_post_process_infer.h" +#include "nnacl/infer/detection_post_process_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/dropout_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/dropout_grad_infer_test.cc index 24e61f841d7..4244a2ca010 100644 --- a/mindspore/lite/test/ut/nnacl/infer/dropout_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/dropout_grad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/dropout_grad_infer.h" +#include "nnacl/infer/dropout_grad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/embedding_lookup_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/embedding_lookup_infer_test.cc index 58eac2a12da..38bbdf4b28e 100644 --- a/mindspore/lite/test/ut/nnacl/infer/embedding_lookup_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/embedding_lookup_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/embedding_lookup_infer.h" +#include "nnacl/infer/embedding_lookup_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/expand_dims_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/expand_dims_infer_test.cc index 7a7d6b06fac..7faf1f1b26a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/expand_dims_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/expand_dims_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/expand_dims_infer.h" +#include "nnacl/infer/expand_dims_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/fft_imag_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/fft_imag_infer_test.cc index 32e7b4f2625..190783e3ee4 100644 --- a/mindspore/lite/test/ut/nnacl/infer/fft_imag_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/fft_imag_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/fft_imag_infer.h" +#include "nnacl/infer/fft_imag_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/fill_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/fill_infer_test.cc index 504ca190471..57d6a8352b7 100644 --- a/mindspore/lite/test/ut/nnacl/infer/fill_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/fill_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/fill_infer.h" +#include "nnacl/infer/fill_infer.h" #include "nnacl/fill_parameter.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/flatten_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/flatten_grad_infer_test.cc index b247ce55ddc..c8fe390bead 100644 --- a/mindspore/lite/test/ut/nnacl/infer/flatten_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/flatten_grad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/flatten_grad_infer.h" +#include "nnacl/infer/flatten_grad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/flatten_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/flatten_infer_test.cc index 7e0f400682f..79b1d812e24 100644 --- a/mindspore/lite/test/ut/nnacl/infer/flatten_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/flatten_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/flatten_infer.h" +#include "nnacl/infer/flatten_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/full_connection_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/full_connection_infer_test.cc index bcf65e01c08..965765f1f1a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/full_connection_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/full_connection_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/full_connection_infer.h" +#include "nnacl/infer/full_connection_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/fused_batchnorm_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/fused_batchnorm_infer_test.cc index 1e406644c74..b772aabb1e1 100644 --- a/mindspore/lite/test/ut/nnacl/infer/fused_batchnorm_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/fused_batchnorm_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/fused_batchnorm_infer.h" +#include "nnacl/infer/fused_batchnorm_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/gather_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/gather_infer_test.cc index c3ab52095f3..96739ca91fc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/gather_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/gather_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/gather_infer.h" +#include "nnacl/infer/gather_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/gather_nd_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/gather_nd_infer_test.cc index b7074eeb201..217944e99d8 100644 --- a/mindspore/lite/test/ut/nnacl/infer/gather_nd_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/gather_nd_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/gather_nd_infer.h" +#include "nnacl/infer/gather_nd_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/group_conv2d_grad_input_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/group_conv2d_grad_input_infer_test.cc index eddea1905ba..12b162f899c 100644 --- a/mindspore/lite/test/ut/nnacl/infer/group_conv2d_grad_input_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/group_conv2d_grad_input_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/group_conv2d_grad_input_infer.h" +#include "nnacl/infer/group_conv2d_grad_input_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/gru_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/gru_infer_test.cc index 2a3f0659182..df24fe9b54b 100644 --- a/mindspore/lite/test/ut/nnacl/infer/gru_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/gru_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/gru_infer.h" +#include "nnacl/infer/gru_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/hashtable_lookup_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/hashtable_lookup_infer_test.cc index d18fca36098..a9a02b6a47a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/hashtable_lookup_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/hashtable_lookup_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/hashtable_lookup_infer.h" +#include "nnacl/infer/hashtable_lookup_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/invert_permutation_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/invert_permutation_infer_test.cc index 59709d5cf8f..b44411fe1c0 100644 --- a/mindspore/lite/test/ut/nnacl/infer/invert_permutation_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/invert_permutation_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/invert_permutation_infer.h" +#include "nnacl/infer/invert_permutation_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/layer_norm_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/layer_norm_infer_test.cc index d0bad4679bf..ac80e1ef809 100644 --- a/mindspore/lite/test/ut/nnacl/infer/layer_norm_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/layer_norm_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/layer_norm_infer.h" +#include "nnacl/infer/layer_norm_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/lsh_projection_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/lsh_projection_infer_test.cc index 98f7600a786..cbbe962da00 100644 --- a/mindspore/lite/test/ut/nnacl/infer/lsh_projection_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/lsh_projection_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/lsh_projection_infer.h" +#include "nnacl/infer/lsh_projection_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/lstm_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/lstm_infer_test.cc index 3ac83ed5fd7..7ed9da8b4cd 100644 --- a/mindspore/lite/test/ut/nnacl/infer/lstm_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/lstm_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/lstm_infer.h" +#include "nnacl/infer/lstm_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/matmul_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/matmul_infer_test.cc index eb2937096a2..ac41e3e6cdc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/matmul_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/matmul_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/matmul_infer.h" +#include "nnacl/infer/matmul_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/max_min_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/max_min_grad_infer_test.cc index 14731353a37..51ab932a096 100644 --- a/mindspore/lite/test/ut/nnacl/infer/max_min_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/max_min_grad_infer_test.cc @@ -14,8 +14,8 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/max_min_grad_infer.h" -#include "mindspore/lite/nnacl/arithmetic.h" +#include "nnacl/infer/max_min_grad_infer.h" +#include "nnacl/arithmetic.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/mean_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/mean_infer_test.cc index c0112db8f22..785ed224da7 100644 --- a/mindspore/lite/test/ut/nnacl/infer/mean_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/mean_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/mean_infer.h" +#include "nnacl/infer/mean_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/mfcc_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/mfcc_infer_test.cc index dd8d8a89a18..77c2b758a30 100644 --- a/mindspore/lite/test/ut/nnacl/infer/mfcc_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/mfcc_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/mfcc_infer.h" +#include "nnacl/infer/mfcc_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/one_hot_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/one_hot_infer_test.cc index b94aab4fb4c..272fac35006 100644 --- a/mindspore/lite/test/ut/nnacl/infer/one_hot_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/one_hot_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/one_hot_infer.h" +#include "nnacl/infer/one_hot_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/pad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/pad_infer_test.cc index 96cfcf0cf08..33750ea0230 100644 --- a/mindspore/lite/test/ut/nnacl/infer/pad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/pad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/pad_infer.h" +#include "nnacl/infer/pad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/pooling_grad_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/pooling_grad_infer_test.cc index 94cd43a6d69..c56fe480344 100644 --- a/mindspore/lite/test/ut/nnacl/infer/pooling_grad_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/pooling_grad_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/pooling_grad_infer.h" +#include "nnacl/infer/pooling_grad_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/pooling_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/pooling_infer_test.cc index 6be3296dc69..81292c19857 100644 --- a/mindspore/lite/test/ut/nnacl/infer/pooling_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/pooling_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/pooling_infer.h" +#include "nnacl/infer/pooling_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/power_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/power_infer_test.cc index b924e75e3f1..74241f3c456 100644 --- a/mindspore/lite/test/ut/nnacl/infer/power_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/power_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/power_infer.h" +#include "nnacl/infer/power_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/quant_dtype_cast_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/quant_dtype_cast_infer_test.cc index 484f016f25a..895d77c8317 100644 --- a/mindspore/lite/test/ut/nnacl/infer/quant_dtype_cast_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/quant_dtype_cast_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/quant_dtype_cast_infer.h" +#include "nnacl/infer/quant_dtype_cast_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/random_standard_normal_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/random_standard_normal_infer_test.cc index db8b6965b7f..c02c52cf278 100644 --- a/mindspore/lite/test/ut/nnacl/infer/random_standard_normal_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/random_standard_normal_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/random_standard_normal_infer.h" +#include "nnacl/infer/random_standard_normal_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/range_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/range_infer_test.cc index fbcb9d89af0..081c9a9a234 100644 --- a/mindspore/lite/test/ut/nnacl/infer/range_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/range_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/range_infer.h" +#include "nnacl/infer/range_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/rank_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/rank_infer_test.cc index 0b93d6355ad..b7fea7db2dc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/rank_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/rank_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/rank_infer.h" +#include "nnacl/infer/rank_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/reduce_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/reduce_infer_test.cc index ec93e6311e8..85ff609124f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/reduce_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/reduce_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/reduce_infer.h" +#include "nnacl/infer/reduce_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/reshape_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/reshape_infer_test.cc index 89a41defc9d..85384202e2f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/reshape_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/reshape_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/reshape_infer.h" +#include "nnacl/infer/reshape_infer.h" #include "nnacl/reshape_parameter.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/resize_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/resize_infer_test.cc index aa5c4943cdf..82cac51a121 100644 --- a/mindspore/lite/test/ut/nnacl/infer/resize_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/resize_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/resize_infer.h" +#include "nnacl/infer/resize_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/rfft_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/rfft_infer_test.cc index 177100707cf..3a8ed61ae53 100644 --- a/mindspore/lite/test/ut/nnacl/infer/rfft_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/rfft_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/rfft_infer.h" +#include "nnacl/infer/rfft_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/roi_pooling_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/roi_pooling_infer_test.cc index 459b4906a68..65cc8beba71 100644 --- a/mindspore/lite/test/ut/nnacl/infer/roi_pooling_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/roi_pooling_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/roi_pooling_infer.h" +#include "nnacl/infer/roi_pooling_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/scatter_nd_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/scatter_nd_infer_test.cc index 7baf04ea66d..79b207ef7cf 100644 --- a/mindspore/lite/test/ut/nnacl/infer/scatter_nd_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/scatter_nd_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/scatter_nd_infer.h" +#include "nnacl/infer/scatter_nd_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/select_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/select_infer_test.cc index e711c58a863..d12d7a7ca60 100644 --- a/mindspore/lite/test/ut/nnacl/infer/select_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/select_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/select_infer.h" +#include "nnacl/infer/select_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/sgd_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/sgd_infer_test.cc index 0df329290dd..d132391eef3 100644 --- a/mindspore/lite/test/ut/nnacl/infer/sgd_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/sgd_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/sgd_infer.h" +#include "nnacl/infer/sgd_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/shape_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/shape_infer_test.cc index ec968dd6c1d..25bfbca196e 100644 --- a/mindspore/lite/test/ut/nnacl/infer/shape_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/shape_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/shape_infer.h" +#include "nnacl/infer/shape_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/size_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/size_infer_test.cc index 026eef82212..14210fd34a6 100644 --- a/mindspore/lite/test/ut/nnacl/infer/size_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/size_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/size_infer.h" +#include "nnacl/infer/size_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/skip_gram_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/skip_gram_infer_test.cc index f36480a3597..4f31c1c6876 100644 --- a/mindspore/lite/test/ut/nnacl/infer/skip_gram_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/skip_gram_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/skip_gram_infer.h" +#include "nnacl/infer/skip_gram_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/slice_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/slice_infer_test.cc index 38ae57a9952..ad0865b4d90 100644 --- a/mindspore/lite/test/ut/nnacl/infer/slice_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/slice_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/slice_infer.h" +#include "nnacl/infer/slice_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/softmax_cross_entropy_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/softmax_cross_entropy_infer_test.cc index 952ddfa1c37..05446578958 100644 --- a/mindspore/lite/test/ut/nnacl/infer/softmax_cross_entropy_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/softmax_cross_entropy_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/softmax_cross_entropy_infer.h" +#include "nnacl/infer/softmax_cross_entropy_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/softmax_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/softmax_infer_test.cc index 1f37f9d61bd..13146760af3 100644 --- a/mindspore/lite/test/ut/nnacl/infer/softmax_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/softmax_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/softmax_infer.h" +#include "nnacl/infer/softmax_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/space_to_batch_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/space_to_batch_infer_test.cc index a9b470e1a96..524b741426f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/space_to_batch_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/space_to_batch_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/space_to_batch_infer.h" +#include "nnacl/infer/space_to_batch_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/space_to_batch_nd_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/space_to_batch_nd_infer_test.cc index 1cb40e910ef..c784843db57 100644 --- a/mindspore/lite/test/ut/nnacl/infer/space_to_batch_nd_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/space_to_batch_nd_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/space_to_batch_nd_infer.h" +#include "nnacl/infer/space_to_batch_nd_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/space_to_depth_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/space_to_depth_infer_test.cc index 7dd2161527c..1e7c2d85246 100644 --- a/mindspore/lite/test/ut/nnacl/infer/space_to_depth_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/space_to_depth_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/space_to_depth_infer.h" +#include "nnacl/infer/space_to_depth_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/sparse_to_dense_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/sparse_to_dense_infer_test.cc index 9b74fe2dd43..39f0e95051d 100644 --- a/mindspore/lite/test/ut/nnacl/infer/sparse_to_dense_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/sparse_to_dense_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/sparse_to_dense_infer.h" +#include "nnacl/infer/sparse_to_dense_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/split_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/split_infer_test.cc index 4817099fd81..f105a94eea8 100644 --- a/mindspore/lite/test/ut/nnacl/infer/split_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/split_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/split_infer.h" +#include "nnacl/infer/split_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/squeeze_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/squeeze_infer_test.cc index 7d6f932c9c3..1e424225866 100644 --- a/mindspore/lite/test/ut/nnacl/infer/squeeze_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/squeeze_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/squeeze_infer.h" +#include "nnacl/infer/squeeze_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/stack_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/stack_infer_test.cc index e3c4ca6ab5a..0a5fcdb01c9 100644 --- a/mindspore/lite/test/ut/nnacl/infer/stack_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/stack_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/stack_infer.h" +#include "nnacl/infer/stack_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/strided_slice_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/strided_slice_infer_test.cc index 6e0afca6a26..a697d412e36 100644 --- a/mindspore/lite/test/ut/nnacl/infer/strided_slice_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/strided_slice_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/strided_slice_infer.h" +#include "nnacl/infer/strided_slice_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tensorlist_fromtensor_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tensorlist_fromtensor_infer_test.cc index bc3d159bb47..c50cf8a403f 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tensorlist_fromtensor_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tensorlist_fromtensor_infer_test.cc @@ -15,7 +15,7 @@ */ #include "common/common_test.h" #include "src/common/tensor_util.h" -#include "mindspore/lite/nnacl/infer/tensorlist_fromtensor_infer.h" +#include "nnacl/infer/tensorlist_fromtensor_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tensorlist_getitem_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tensorlist_getitem_infer_test.cc index abf83424cb7..635405eb1df 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tensorlist_getitem_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tensorlist_getitem_infer_test.cc @@ -15,7 +15,7 @@ */ #include "common/common_test.h" #include "src/common/tensor_util.h" -#include "mindspore/lite/nnacl/infer/tensorlist_getitem_infer.h" +#include "nnacl/infer/tensorlist_getitem_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tensorlist_reserve_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tensorlist_reserve_infer_test.cc index 9398b0b2f7d..d9b41df3cf1 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tensorlist_reserve_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tensorlist_reserve_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/tensorlist_reserve_infer.h" +#include "nnacl/infer/tensorlist_reserve_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tensorlist_setitem_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tensorlist_setitem_infer_test.cc index 23a958e102d..639aa97d06a 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tensorlist_setitem_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tensorlist_setitem_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/tensorlist_setitem_infer.h" +#include "nnacl/infer/tensorlist_setitem_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tensorlist_stack_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tensorlist_stack_infer_test.cc index 9dd2acb4722..adebf6aa990 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tensorlist_stack_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tensorlist_stack_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/tensorlist_stack_infer.h" +#include "nnacl/infer/tensorlist_stack_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/tile_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/tile_infer_test.cc index 8ef89768446..1e8d68334eb 100644 --- a/mindspore/lite/test/ut/nnacl/infer/tile_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/tile_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/tile_infer.h" +#include "nnacl/infer/tile_infer.h" #include "nnacl/base/tile_base.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/topk_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/topk_infer_test.cc index 3db894cd970..1a60a253784 100644 --- a/mindspore/lite/test/ut/nnacl/infer/topk_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/topk_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/topk_infer.h" +#include "nnacl/infer/topk_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/transpose_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/transpose_infer_test.cc index 666c0615d1b..4d36b98caa3 100644 --- a/mindspore/lite/test/ut/nnacl/infer/transpose_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/transpose_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/transpose_infer.h" +#include "nnacl/infer/transpose_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/unique_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/unique_infer_test.cc index 4c3204c1217..d2048aa6587 100644 --- a/mindspore/lite/test/ut/nnacl/infer/unique_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/unique_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/unique_infer.h" +#include "nnacl/infer/unique_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/unsorted_segment_sum_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/unsorted_segment_sum_infer_test.cc index b04cf7c735b..526f8975997 100644 --- a/mindspore/lite/test/ut/nnacl/infer/unsorted_segment_sum_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/unsorted_segment_sum_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/unsorted_segment_sum_infer.h" +#include "nnacl/infer/unsorted_segment_sum_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/unsqueeze_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/unsqueeze_infer_test.cc index 643f2efddef..25122ce2dde 100644 --- a/mindspore/lite/test/ut/nnacl/infer/unsqueeze_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/unsqueeze_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/unsqueeze_infer.h" +#include "nnacl/infer/unsqueeze_infer.h" #include "nnacl/unsqueeze_parameter.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/unstack_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/unstack_infer_test.cc index 682b4a78495..754651ead61 100644 --- a/mindspore/lite/test/ut/nnacl/infer/unstack_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/unstack_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/unstack_infer.h" +#include "nnacl/infer/unstack_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/where_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/where_infer_test.cc index 7e0fb716d31..35399b67800 100644 --- a/mindspore/lite/test/ut/nnacl/infer/where_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/where_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/where_infer.h" +#include "nnacl/infer/where_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/nnacl/infer/while_infer_test.cc b/mindspore/lite/test/ut/nnacl/infer/while_infer_test.cc index 32bd9668e28..f7dbda04ddc 100644 --- a/mindspore/lite/test/ut/nnacl/infer/while_infer_test.cc +++ b/mindspore/lite/test/ut/nnacl/infer/while_infer_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/infer/while_infer.h" +#include "nnacl/infer/while_infer.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/common/pack_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/common/pack_tests.cc index b8d35b68bc5..5adecbc2552 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/common/pack_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/common/pack_tests.cc @@ -19,9 +19,9 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/common/file_utils.h" -#include "mindspore/lite/nnacl/pack.h" +#include "nnacl/pack.h" #ifdef ENABLE_FP16 -#include "mindspore/lite/nnacl/fp16/pack_fp16.h" +#include "nnacl/fp16/pack_fp16.h" #endif namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc index 6786dbe45d0..ab3ae8e667a 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/activation_fp32_test.cc @@ -16,7 +16,7 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/activation_fp32.h" +#include "nnacl/fp32/activation_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batch_to_space_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batch_to_space_fp32_test.cc index fefb471f935..bb357f5c8fe 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batch_to_space_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batch_to_space_fp32_test.cc @@ -15,9 +15,9 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/base/batch_to_space_base.h" -#include "mindspore/lite/nnacl/batch_to_space.h" -#include "mindspore/lite/nnacl/common_func.h" +#include "nnacl/base/batch_to_space_base.h" +#include "nnacl/batch_to_space.h" +#include "nnacl/common_func.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc index 04b9c467c51..f5170861098 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/batchnorm_fp32_tests.cc @@ -16,7 +16,7 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/batchnorm_fp32.h" +#include "nnacl/fp32/batchnorm_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc index f26e6e535f1..d966011f763 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/crop_fp32_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/crop_fp32.h" +#include "nnacl/fp32/crop_fp32.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32/crop_fp32.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc index 2f34ae980d7..f882642d7f9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/deconvolution_fp32_tests.cc @@ -19,8 +19,8 @@ #include "common/common_test.h" #include "src/common/file_utils.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32/deconvolution_fp32.h" -#include "mindspore/lite/nnacl/fp32/deconv_fp32.h" -#include "mindspore/lite/nnacl/op_base.h" +#include "nnacl/fp32/deconv_fp32.h" +#include "nnacl/op_base.h" namespace mindspore { class TestDeConvolutionFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/depth_to_space_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/depth_to_space_fp32_test.cc index c1e48155e23..52f3d43de41 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/depth_to_space_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/depth_to_space_fp32_test.cc @@ -15,8 +15,8 @@ */ #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/base/depth_to_space_base.h" -#include "mindspore/lite/nnacl/common_func.h" +#include "nnacl/base/depth_to_space_base.h" +#include "nnacl/common_func.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc index 111fda99d09..bef7e28a8b3 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lsh_projection_fp32_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/lsh_projection_parameter.h" +#include "nnacl/lsh_projection_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc index 9929a697a32..8ea3c086af8 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/lstm_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/lstm_fp32.h" +#include "nnacl/fp32/lstm_fp32.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc index 8cc9d9fbdab..d0f1282f132 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/matmul_fp32_tests.cc @@ -17,7 +17,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32/matmul_fp32.h" -#include "mindspore/lite/nnacl/fp32/matmul_fp32.h" +#include "nnacl/fp32/matmul_fp32.h" #include "src/kernel_registry.h" #include "src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc index 5858141fdbf..0fffde0434e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reduce_fp32_tests.cc @@ -16,7 +16,7 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/reduce_fp32.h" +#include "nnacl/fp32/reduce_fp32.h" #include "schema/inner/model_generated.h" #include "src/tensor.h" #include "mindspore/lite/src/kernel_registry.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc index 4d7fff18a37..6329f04ebb2 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/reverse_sequence_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/reverse_sequence_fp32.h" +#include "nnacl/fp32/reverse_sequence_fp32.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc index 245426f51bf..f250ff768ad 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/skip_gram_fp32.cc @@ -16,7 +16,7 @@ #include #include "src/runtime/kernel/arm/fp32/skip_gram_fp32.h" -#include "mindspore/lite/nnacl/skip_gram_parameter.h" +#include "nnacl/skip_gram_parameter.h" #include "src/common/file_utils.h" #include "common/common_test.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc index 942982fbd48..a47d2e7a2aa 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_batch_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/space_to_batch_fp32.h" +#include "nnacl/fp32/space_to_batch_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc index 82c53c65685..557ae648a79 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/space_to_depth_fp32_tests.cc @@ -18,8 +18,8 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/space_to_depth_parameter.h" -#include "mindspore/lite/nnacl/base/space_to_depth_base.h" +#include "nnacl/space_to_depth_parameter.h" +#include "nnacl/base/space_to_depth_base.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc index 8a985af7050..3edd833196c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/sparse_to_dense_fp32_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/sparse_to_dense_fp32.h" +#include "nnacl/fp32/sparse_to_dense_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/stack_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/stack_fp32_test.cc index 8e3f48f56a8..ba2b7b044a2 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/stack_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/stack_fp32_test.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "common/common_test.h" -#include "mindspore/lite/nnacl/base/stack_base.h" +#include "nnacl/base/stack_base.h" namespace mindspore { class StackTestFp32 : public mindspore::CommonTest { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc index 6b2345468b2..5811c6d575c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/strided_slice_fp32_tests.cc @@ -19,7 +19,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/common/utils.h" -#include "mindspore/lite/nnacl/fp32/strided_slice_fp32.h" +#include "nnacl/fp32/strided_slice_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc index 3e9e33c7830..d059201c23c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/tile_fp32_tests.cc @@ -16,7 +16,7 @@ #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/base/tile_base.h" +#include "nnacl/base/tile_base.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc index 705b017a2f0..6d5bbe1ef1d 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/topk_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/topk_fp32.h" +#include "nnacl/fp32/topk_fp32.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc index 12e965431db..f49ee9f6702 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/transpose_fp32_tests.cc @@ -19,7 +19,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32/transpose_fp32.h" -#include "mindspore/lite/nnacl/transpose.h" +#include "nnacl/transpose.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc index 9daebf28b4f..7bc238d9984 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/uniform_real_fp32_test.cc @@ -16,7 +16,7 @@ #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/random_parameter.h" +#include "nnacl/random_parameter.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc index cb2582d07d6..843c49c4604 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unique_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/unique_fp32.h" +#include "nnacl/fp32/unique_fp32.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc index 0eb1ca00995..82809e68c41 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/unstack_fp32_tests.cc @@ -17,7 +17,7 @@ #include #include #include "common/common_test.h" -#include "mindspore/lite/nnacl/base/unstack_base.h" +#include "nnacl/base/unstack_base.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc index b49f1368dda..2f4becb4dce 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/convolution_grad_fp32_tests.cc @@ -23,7 +23,7 @@ #include "mindspore/lite/src/runtime/kernel/arm/fp32_grad/convolution.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32_grad/convolution_grad_filter.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32_grad/convolution_grad_input.h" -#include "mindspore/lite/nnacl/conv_parameter.h" +#include "nnacl/conv_parameter.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc index 74367174b75..2e1f5c9e7e0 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_fp32_tests.cc @@ -20,7 +20,7 @@ #include "common/common_test.h" #include "src/common/file_utils.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32_grad/deconvolution_grad_filter.h" -#include "mindspore/lite/nnacl/conv_parameter.h" +#include "nnacl/conv_parameter.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc index 39963e33fe3..b8cbf181ff7 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/softmax_grad_fp32_tests.cc @@ -23,7 +23,7 @@ #include "src/common/utils.h" #include "src/common/file_utils.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32_grad/softmax_grad.h" -#include "mindspore/lite/nnacl/fp32_grad/softmax_grad.h" +#include "nnacl/fp32_grad/softmax_grad.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc index 9cb0edeccc5..5895faa7eb8 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/arithmetic_self_int8_tests.cc @@ -17,7 +17,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/arithmetic_self_parameter.h" +#include "nnacl/arithmetic_self_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc index f059a3917b2..be8a2ebb98e 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/batchnorm_int8_test.cc @@ -17,8 +17,8 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/batchnorm_parameter.h" -#include "mindspore/lite/nnacl/int8/batchnorm_int8.h" +#include "nnacl/batchnorm_parameter.h" +#include "nnacl/int8/batchnorm_int8.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc index f6a49bcdb2a..2d2be7b4dcd 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/concat_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/concat_parameter.h" +#include "nnacl/concat_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc index 182543d34a6..5151a149fe2 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/conv_1x1_int8_tests.cc @@ -17,7 +17,7 @@ #include "common/common_test.h" #include "mindspore/lite/src/lite_kernel.h" #include "src/common/file_utils.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "nnacl/common_func.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/convolution_1x1_int8.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc index 5ac676a46d0..70145de386f 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/crop_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/crop_parameter.h" +#include "nnacl/crop_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc index 0bc0a38e2c3..5899902eeae 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/deconv_int8_tests.cc @@ -20,9 +20,9 @@ #include "common/common_test.h" #include "src/common/file_utils.h" #include "mindspore/lite/src/kernel_registry.h" -#include "mindspore/lite/nnacl/pack.h" -#include "mindspore/lite/nnacl/fp32/matmul_fp32.h" -#include "mindspore/lite/nnacl/int8/deconv_int8.h" +#include "nnacl/pack.h" +#include "nnacl/fp32/matmul_fp32.h" +#include "nnacl/int8/deconv_int8.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/deconvolution_int8.h" using mindspore::lite::DeviceType; diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc index ef695fb1885..67750d4d661 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/fullconnection_int8_tests.cc @@ -17,8 +17,8 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/fullconnection_int8.h" -#include "mindspore/lite/nnacl/common_func.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/common_func.h" +#include "nnacl/int8/quantize.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc index fe5c1dc21d4..74812ad73c9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gatherNd_int8_test.cc @@ -16,8 +16,8 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/gatherNd_fp32.h" -#include "mindspore/lite/nnacl/int8/gatherNd_int8.h" +#include "nnacl/fp32/gatherNd_fp32.h" +#include "nnacl/int8/gatherNd_int8.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc index 80ab86929e8..00790b98f79 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/gather_int8_test.cc @@ -16,8 +16,8 @@ #include #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/gather_parameter.h" -#include "mindspore/lite/nnacl/int8/gather_int8.h" +#include "nnacl/gather_parameter.h" +#include "nnacl/int8/gather_int8.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc index 8b95aeed1e0..cd38f70528b 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/hswish_int8_tests.cc @@ -19,7 +19,7 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/fp32/activation_fp32.h" -#include "mindspore/lite/nnacl/fp32/activation_fp32.h" +#include "nnacl/fp32/activation_fp32.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/hswish_int8.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/include/context.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc index c5ef9807a35..5479d6f4cd6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/matmul_int8_tests.cc @@ -18,7 +18,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/matmul_int8.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "nnacl/common_func.h" #include "nnacl/int8/matmul_int8.h" #include "mindspore/lite/src/kernel_registry.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc index 8496a774195..1451394a150 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/mul_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/mul_parameter.h" +#include "nnacl/mul_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc index b90cce8318f..73016f37a1a 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/power_int8_tests.cc @@ -19,7 +19,7 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/power_int8.h" -#include "mindspore/lite/nnacl/power_parameter.h" +#include "nnacl/power_parameter.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc index c59167be69e..6c7918aeba0 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/prelu_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/int8/quantize.h" +#include "nnacl/int8/quantize.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc index 5589d44e767..30089ada802 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/quant_dtype_cast_tests.cc @@ -19,7 +19,7 @@ #include "src/common/log_adapter.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/base/quant_dtype_cast.h" -#include "mindspore/lite/nnacl/int8/quant_dtype_cast_int8.h" +#include "nnacl/int8/quant_dtype_cast_int8.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc index 9fc8743ece1..b86661ad635 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/reshape_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/reshape_parameter.h" +#include "nnacl/reshape_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc index 574b7427743..9bddfae9fd4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/sigmoid_int8_tests.cc @@ -17,7 +17,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/activation_fp32.h" +#include "nnacl/fp32/activation_fp32.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/include/context.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc index 48f0cb6755b..c4eaea34741 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/softmax_int8_tests.cc @@ -19,7 +19,7 @@ #include "schema/inner/model_generated.h" #include "common/common_test.h" #include "mindspore/lite/src/runtime/kernel/arm/int8/softmax_int8.h" -#include "mindspore/lite/nnacl/softmax_parameter.h" +#include "nnacl/softmax_parameter.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc index 542f140e204..0f798956e0c 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/split_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/split_parameter.h" +#include "nnacl/split_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc index bac156827da..45c6e8e80a6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/squeeze_int8_tests.cc @@ -18,7 +18,7 @@ #include "schema/inner/model_generated.h" #include "src/common/log_adapter.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/squeeze_parameter.h" +#include "nnacl/squeeze_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc index cb2855535f9..32c8829dcf4 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/topk_int8_tests.cc @@ -18,7 +18,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/fp32/topk_fp32.h" +#include "nnacl/fp32/topk_fp32.h" #include "mindspore/lite/src/kernel_registry.h" namespace mindspore { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc index 38aec8665fb..92704b8f600 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/unsqueeze_int8_tests.cc @@ -17,7 +17,7 @@ #include #include "schema/inner/model_generated.h" #include "common/common_test.h" -#include "mindspore/lite/nnacl/unsqueeze_parameter.h" +#include "nnacl/unsqueeze_parameter.h" #include "mindspore/lite/src/kernel_registry.h" #include "mindspore/lite/src/lite_kernel.h" #include "mindspore/lite/src/tensor.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc b/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc index 8f685998426..448507ebb17 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/arm/string/normalize.cc @@ -18,7 +18,7 @@ #include "src/runtime/kernel/arm/fp32/skip_gram_fp32.h" #include "src/runtime/kernel/arm/string/normalize.h" #include "mindspore/lite/src/kernel_registry.h" -#include "mindspore/lite/nnacl/skip_gram_parameter.h" +#include "nnacl/skip_gram_parameter.h" #include "src/common/file_utils.h" #include "common/common_test.h" #include "src/common/log_adapter.h" diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/prelu_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/prelu_tests.cc index dd25e8b8a10..ffbe9c70104 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/prelu_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/prelu_tests.cc @@ -14,7 +14,7 @@ * limitations under the License. */ #include "ut/src/runtime/kernel/opencl/common.h" -#include "mindspore/lite/nnacl/prelu_parameter.h" +#include "nnacl/prelu_parameter.h" namespace mindspore::lite::opencl::test { diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/space_to_depth_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/space_to_depth_tests.cc index ff8b34be66a..3b6f31c32e9 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/space_to_depth_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/space_to_depth_tests.cc @@ -14,8 +14,8 @@ * limitations under the License. */ #include "ut/src/runtime/kernel/opencl/common.h" -#include "mindspore/lite/nnacl/space_to_depth_parameter.h" -#include "mindspore/lite/nnacl/base/space_to_depth_base.h" +#include "nnacl/space_to_depth_parameter.h" +#include "nnacl/base/space_to_depth_base.h" #include "nnacl/depth_to_space_parameter.h" namespace mindspore::lite::opencl::test { diff --git a/mindspore/lite/tools/converter/CMakeLists.txt b/mindspore/lite/tools/converter/CMakeLists.txt index 91d48d96a6b..8d9fb8815f0 100644 --- a/mindspore/lite/tools/converter/CMakeLists.txt +++ b/mindspore/lite/tools/converter/CMakeLists.txt @@ -6,9 +6,10 @@ set(CCSRC_SRC ${CCSRC_DIR}/backend/optimizer/common/visit.cc ${CCSRC_DIR}/backend/optimizer/common/optimizer.cc ) +set(NNACL_DIR ${CCSRC_DIR}/backend/kernel_compiler/cpu/nnacl) include(${TOP_DIR}/cmake/external_libs/glog.cmake) - +include_directories(${TOP_DIR}/mindspore/ccsrc/backend/kernel_compiler/cpu) file(GLOB OPS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../src/ops/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/../../src/ops/populate/*.cc ${CMAKE_CURRENT_SOURCE_DIR}/ops/*.cc @@ -144,20 +145,20 @@ endif() set(ARM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../src/runtime/kernel/arm) file(GLOB KERNEL_SRC ${ARM_DIR}/base/*.cc - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/*.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/fp32/*.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/infer/*.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/int8/*.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/base/*.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/quantization/*.c + ${NNACL_DIR}/*.c + ${NNACL_DIR}/fp32/*.c + ${NNACL_DIR}/infer/*.c + ${NNACL_DIR}/int8/*.c + ${NNACL_DIR}/base/*.c + ${NNACL_DIR}/quantization/*.c ${ARM_DIR}/fp32/*.cc ${ARM_DIR}/int8/*.cc ) if(PLATFORM_ARM64) # assembly - file(GLOB ASSEMBLY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/assembly/arm64/*.s - ${CMAKE_CURRENT_SOURCE_DIR}/../../nnacl/assembly/arm64/*.S) + file(GLOB ASSEMBLY_SRC ${NNACL_DIR}/assembly/arm64/*.s + ${NNACL_DIR}/assembly/arm64/*.S) set_property(SOURCE ${ASSEMBLY_SRC} PROPERTY LANGUAGE C) set(KERNEL_SRC ${KERNEL_SRC} ${ASSEMBLY_SRC}) endif() diff --git a/mindspore/lite/tools/cropper/build_cropper_config.sh b/mindspore/lite/tools/cropper/build_cropper_config.sh index 1a5561a1400..e8195a33fcf 100644 --- a/mindspore/lite/tools/cropper/build_cropper_config.sh +++ b/mindspore/lite/tools/cropper/build_cropper_config.sh @@ -39,8 +39,7 @@ HEADER_LOCATION="-I${MINDSPORE_HOME} -I${FLATBUFFERS} -I${MINDSPORE_HOME}/mindspore/lite/build/schema -I${MINDSPORE_HOME}/mindspore/lite/build/schema/inner --I${MINDSPORE_HOME}/mindspore/lite/src/../nnacl --I${MINDSPORE_HOME}/mindspore/lite/src/../nnacl/optimize" +-I${MINDSPORE_HOME}/mindspore/ccsrc/backend/kernel_compiler/cpu" REMOVE_LISTS_STR="" getDeep() { @@ -108,9 +107,9 @@ getCommonFile() { others_files_h=( "${MINDSPORE_HOME}"/mindspore/lite/src/populate/populate_register.h "${MINDSPORE_HOME}"/mindspore/lite/src/runtime/infer_manager.h - "${MINDSPORE_HOME}"/mindspore/lite/nnacl/infer/infer_register.h - "${MINDSPORE_HOME}"/mindspore/lite/nnacl/nnacl_utils.h - "${MINDSPORE_HOME}"/mindspore/lite/nnacl/pack.h + "${MINDSPORE_HOME}"/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.h + "${MINDSPORE_HOME}"/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.h + "${MINDSPORE_HOME}"/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/pack.h "${MINDSPORE_HOME}"/mindspore/lite/src/runtime/kernel/arm/fp16/common_fp16.h ) all_files_h=("${include_h[@]}" "${src_files_h[@]}" "${common_files_h[@]}" "${runtime_files_h[@]}" "${others_files_h[@]}") @@ -141,12 +140,12 @@ getCommonFile() { while IFS='' read -r line; do runtime_files_c+=("$line"); done < <(ls ${MINDSPORE_HOME}/mindspore/lite/src/runtime/*.c) # sava all assembly files assembly_files=() - while IFS='' read -r line; do assembly_files+=("$line"); done < <(ls ${MINDSPORE_HOME}/mindspore/lite/nnacl/assembly/*/*.S) + while IFS='' read -r line; do assembly_files+=("$line"); done < <(ls ${MINDSPORE_HOME}/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/*/*.S) others_files_c=( - "${MINDSPORE_HOME}"/mindspore/lite/nnacl/nnacl_utils.c + "${MINDSPORE_HOME}"/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/nnacl_utils.c "${MINDSPORE_HOME}"/mindspore/lite/src/runtime/kernel/arm/fp16/common_fp16.cc "${MINDSPORE_HOME}"/mindspore/lite/src/runtime/infer_manager.cc - "${MINDSPORE_HOME}"/mindspore/lite/nnacl/infer/infer_register.c + "${MINDSPORE_HOME}"/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.c "${MINDSPORE_HOME}"/mindspore/core/utils/status.cc ) all_files=("${src_files[@]}" "${common_files[@]}" "${runtime_files_cc[@]}" @@ -191,7 +190,7 @@ getCommonFile # get src/ops getOpsFile "Registry\(schema::PrimitiveType_" "${MINDSPORE_HOME}/mindspore/lite/src/ops" "prototype" & getOpsFile "REG_POPULATE\(PrimitiveType_" "${MINDSPORE_HOME}/mindspore/lite/src/ops" "prototype" & -getOpsFile "REG_INFER\(.*?, PrimType_" "${MINDSPORE_HOME}/mindspore/lite/nnacl/infer" "prototype" & +getOpsFile "REG_INFER\(.*?, PrimType_" "${MINDSPORE_HOME}/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer" "prototype" & getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat32, PrimitiveType_" "${MINDSPORE_HOME}/mindspore/lite/src/runtime/kernel/arm" "kNumberTypeFloat32" & getOpsFile "REG_KERNEL\(.*?, kNumberTypeFloat16, PrimitiveType_" "${MINDSPORE_HOME}/mindspore/lite/src/runtime/kernel/arm" "kNumberTypeFloat16" & getOpsFile "REG_KERNEL\(.*?, kNumberTypeInt8, PrimitiveType_" "${MINDSPORE_HOME}/mindspore/lite/src/runtime/kernel/arm" "kNumberTypeInt8" &