From d0063b37b2e62d7d2523e4dae8e348f8013d9318 Mon Sep 17 00:00:00 2001 From: xiebaiyuan Date: Wed, 27 Feb 2019 21:58:14 +0800 Subject: [PATCH] use gemm to s1p0 in conv add bn relu --- .../kernel/central-arm-func/conv_add_bn_relu_arm_func.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/operators/kernel/central-arm-func/conv_add_bn_relu_arm_func.h b/src/operators/kernel/central-arm-func/conv_add_bn_relu_arm_func.h index b94d6c97f2..5ee1e251d9 100644 --- a/src/operators/kernel/central-arm-func/conv_add_bn_relu_arm_func.h +++ b/src/operators/kernel/central-arm-func/conv_add_bn_relu_arm_func.h @@ -120,7 +120,8 @@ void ConvAddBNReluCompute(const FusionConvAddBNReluParam ¶m) { if (param.Groups() == param.Input()->dims()[1] && param.Input()->dims()[1] == param.Output()->dims()[1] && param.Filter()->dims()[2] == param.Filter()->dims()[3] && - param.Filter()->dims()[2] == 3 && param.Strides()[0] == 1) { + param.Filter()->dims()[2] == 3 && param.Strides()[0] == 1 && + param.paddings_[0] == 1) { math::DepthwiseConvAddBNRelu3x3s1p1(param.Input(), param.Filter(), param.Output(), param.NewScale(), param.NewBias(), true); -- GitLab