From 7a3f6d6ea7e71a38b27b56b4078b0ec5952e1d3e Mon Sep 17 00:00:00 2001 From: Pengyongrong Date: Tue, 1 Sep 2020 03:59:02 -0700 Subject: [PATCH] modify the head_file judge --- mindspore/lite/src/runtime/kernel/opencl/image_format.h | 6 +++--- .../lite/src/runtime/kernel/opencl/kernel/arithmetic.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h | 4 ++-- mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h | 4 ++-- .../src/runtime/kernel/opencl/kernel/conv2d_transpose.h | 6 +++--- .../src/runtime/kernel/opencl/kernel/depthwise_conv2d.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/slice.h | 4 ++-- mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h | 6 +++--- .../lite/src/runtime/kernel/opencl/subgraph_opencl_kernel.h | 6 +++--- mindspore/lite/src/runtime/kernel/opencl/utils.h | 6 +++--- 15 files changed, 42 insertions(+), 42 deletions(-) diff --git a/mindspore/lite/src/runtime/kernel/opencl/image_format.h b/mindspore/lite/src/runtime/kernel/opencl/image_format.h index bbf4bacb5ad..a2533dfb055 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/image_format.h +++ b/mindspore/lite/src/runtime/kernel/opencl/image_format.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_IMAGE_FORMAT_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_IMAGE_FORMAT_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_IMAGE_FORMAT_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_IMAGE_FORMAT_H_ #include "src/runtime/opencl/opencl_runtime.h" @@ -59,5 +59,5 @@ cl_channel_type ToImageChannelType(TypeId data_type) { } // namespace kernel } // namespace mindspore -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_IMAGE_FORMAT_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_IMAGE_FORMAT_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h index 5210f8e7718..a48fffaba85 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_ARITHMETIC_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_ARITHMETIC_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_ARITHMETIC_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_ARITHMETIC_H_ #include #include "src/runtime/kernel/arm/fp32/arithmetic.h" @@ -51,4 +51,4 @@ class ArithmeticOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_ARITHMETIC_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_ARITHMETIC_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h index fbfd2a18dc0..16027ab5951 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/batchnorm.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_BATCHNORM_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_BATCHNORM_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_BATCHNORM_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_BATCHNORM_H_ #include #include "ir/anf.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h index a411bd6af61..dafd374753a 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/concat.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_CONCAT_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_CONCAT_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONCAT_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONCAT_H_ #include #include "ir/anf.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h index 901015def0f..8f179669000 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/conv2d_transpose.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_CONV2D_TRANSPOSE_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_CONV2D_TRANSPOSE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONV2D_TRANSPOSE_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONV2D_TRANSPOSE_H_ #include @@ -47,4 +47,4 @@ class Conv2dTransposeOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_CONV2D_TRANSPOSE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_CONV2D_TRANSPOSE_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h index 6564054483b..9f5ae2e7170 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/depthwise_conv2d.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_DEPTHWISE_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_DEPTHWISE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_DEPTHWISE_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_DEPTHWISE_H_ #include #include "src/runtime/kernel/opencl/opencl_kernel.h" @@ -51,4 +51,4 @@ class DepthwiseConv2dOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_DEPTHWISE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_DEPTHWISE_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h index 55847d4d765..7440382a096 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/matmul.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_MATMUL_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_MATMUL_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_MATMUL_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_MATMUL_H_ #include @@ -51,4 +51,4 @@ class MatMulOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_MATMUL_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_MATMUL_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h index dcf0f0dd090..cd09842581c 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/pooling2d.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_POOLING_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_POOLING_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_POOLING_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_POOLING_H_ #include @@ -48,4 +48,4 @@ class PoolingOpenCLKernel : public OpenCLKernel { } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_POOLING_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_POOLING_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h index 15fc8373810..95ed49548c0 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/reshape.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_RESHAPE_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_RESHAPE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESHAPE_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESHAPE_H_ #include @@ -42,4 +42,4 @@ class ReshapeOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_RESHAPE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESHAPE_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/slice.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/slice.h index 2df3f3f3e1a..7a679e45934 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/slice.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/slice.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_SLICE_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_SLICE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SLICE_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SLICE_H_ #include #include "ir/anf.h" diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h index 4fc789b58da..154e06057e2 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/softmax.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_SOFTMAX_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_SOFTMAX_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SOFTMAX_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SOFTMAX_H_ #include @@ -57,4 +57,4 @@ class SoftmaxOpenCLKernel : public OpenCLKernel { } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_SOFTMAX_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SOFTMAX_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h index febf17cd4de..3aeca11adbe 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/to_format.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_TO_FORMAT_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_TO_FORMAT_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TO_FORMAT_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TO_FORMAT_H_ #include @@ -45,4 +45,4 @@ class ToFormatOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_RESHAPE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_RESHAPE_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h b/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h index 708acbfaae9..698ef9e7355 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h +++ b/mindspore/lite/src/runtime/kernel/opencl/kernel/transpose.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_TRANSPOSE_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_TRANSPOSE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TRANSPOSE_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TRANSPOSE_H_ #include @@ -43,4 +43,4 @@ class TransposeOpenCLKernel : public OpenCLKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_TRANSPOSE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_TRANSPOSE_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/subgraph_opencl_kernel.h b/mindspore/lite/src/runtime/kernel/opencl/subgraph_opencl_kernel.h index 59e41af9458..19387a8cf50 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/subgraph_opencl_kernel.h +++ b/mindspore/lite/src/runtime/kernel/opencl/subgraph_opencl_kernel.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_SUBGRAPH_OPENCL_KENEL_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_SUBGRAPH_OPENCL_KENEL_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SUBGRAPH_OPENCL_KENEL_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SUBGRAPH_OPENCL_KENEL_H_ #include #include "src/runtime/kernel/opencl/opencl_kernel.h" @@ -67,4 +67,4 @@ class SubGraphOpenCLKernel : public SubGraphKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_SUBGRAPH_OPENCL_KERNEL_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_SUBGRAPH_OPENCL_KERNEL_H_ diff --git a/mindspore/lite/src/runtime/kernel/opencl/utils.h b/mindspore/lite/src/runtime/kernel/opencl/utils.h index c498b65c3ff..699bf04430a 100644 --- a/mindspore/lite/src/runtime/kernel/opencl/utils.h +++ b/mindspore/lite/src/runtime/kernel/opencl/utils.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_BACKEND_OPENCL_UTILS_H_ -#define MINDSPORE_LITE_SRC_BACKEND_OPENCL_UTILS_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_UTILS_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_UTILS_H_ #include #include @@ -159,4 +159,4 @@ void PackNHWCToNC4HW4(void *src, void *dst, int batch, int plane, int channel, } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_BACKEND_OPENCL_UTILS_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_OPENCL_KERNEL_UTILS_H_