From 2905dcded693f37729acb1d0202efc4bb6eeef61 Mon Sep 17 00:00:00 2001 From: xzl Date: Wed, 30 May 2018 09:49:29 +0800 Subject: [PATCH] fix code format --- paddle/function/neon/NeonDepthwiseConv.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/paddle/function/neon/NeonDepthwiseConv.cpp b/paddle/function/neon/NeonDepthwiseConv.cpp index 199e23c4cb..d7ac83da41 100644 --- a/paddle/function/neon/NeonDepthwiseConv.cpp +++ b/paddle/function/neon/NeonDepthwiseConv.cpp @@ -66,16 +66,18 @@ class NeonDepthwiseConvFunction : public ConvFunctionBase { float* inputPadding = inputData; int padInputHeight = inputHeight + 2 * paddingH(); int padInputWidth = inputWidth + 2 * paddingW(); - int newSize = batchSize * (inputChannels + 1) * padInputHeight * padInputWidth; + int newSize = + batchSize * (inputChannels + 1) * padInputHeight * padInputWidth; + resizeBuffer(newSize); inputPadding = reinterpret_cast(memory_->getBuf()); neon::Padding::run(inputData, - inputPadding, - batchSize * inputChannels, - inputHeight, - inputWidth, - padInputHeight, - padInputWidth); + inputPadding, + batchSize * inputChannels, + inputHeight, + inputWidth, + padInputHeight, + padInputWidth); std::function -- GitLab