diff --git a/mindspore/lite/nnacl/infer/deconv2d_infer.c b/mindspore/lite/nnacl/infer/deconv2d_infer.c index 5f77ecc1f7..e71d7c09f5 100644 --- a/mindspore/lite/nnacl/infer/deconv2d_infer.c +++ b/mindspore/lite/nnacl/infer/deconv2d_infer.c @@ -20,7 +20,7 @@ int Deconv2dInferShape(const TensorC *const *inputs, size_t inputs_size, TensorC **outputs, size_t outputs_size, OpParameter *parameter) { #ifdef Debug - int check_ret = CheckAugmentNull(inputs, inputs_size, outputs, outputs_size, parameter); + int check_ret = CheckAugmentNullInputSize(inputs, inputs_size, outputs, outputs_size, parameter, 2); if (check_ret != NNACL_OK) { return check_ret; } diff --git a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h index 8fdc5864b9..67731cc8fd 100644 --- a/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h +++ b/mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_RESHAPE_H_ -#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_RESHAPE_H_ +#ifndef MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_L2_NORM_H_ +#define MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_L2_NORM_H_ #include #include "src/lite_kernel.h" @@ -57,4 +57,4 @@ class L2NormCPUKernel : public LiteKernel { }; } // namespace mindspore::kernel -#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_RESHAPE_H_ +#endif // MINDSPORE_LITE_SRC_RUNTIME_KERNEL_ARM_FP32_L2_NORM_H_ diff --git a/mindspore/lite/test/ut/src/runtime/kernel/opencl/conv2d_tests.cc b/mindspore/lite/test/ut/src/runtime/kernel/opencl/conv2d_tests.cc index 06854f179d..55c41a67a6 100644 --- a/mindspore/lite/test/ut/src/runtime/kernel/opencl/conv2d_tests.cc +++ b/mindspore/lite/test/ut/src/runtime/kernel/opencl/conv2d_tests.cc @@ -39,6 +39,7 @@ ConvParameter *CreateParameter(const std::string &attr, ActType act_type) { void TestMain_Conv2D(const std::string &attr, float *input_data, float *weight_data, float *bias_data, float *output_data, ActType act_type, bool fp16_enable, float atol = 1e-9) { auto *param = CreateParameter(attr, act_type); + param->group_ = 1; // group conv is not supported in this test std::vector input_shape = {param->input_batch_, param->input_h_, param->input_w_, param->input_channel_}; std::vector weight_shape = {param->output_channel_, param->kernel_h_, param->kernel_w_, param->input_channel_}; std::vector bias_shape = {param->output_channel_};