Skip to content

Commit

Permalink
correct arm convolution depthwise mistakes (Tencent#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamply authored and nihui committed Jan 22, 2018
1 parent 31985b1 commit 6612178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/arm/convolutiondepthwise_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ int ConvolutionDepthWise_arm::forward(const Mat& bottom_blob, Mat& top_blob) con

if (kernel_w != kernel_h || stride_w != stride_h)
{
return Convolution::forward(bottom_blob, top_blob);
return ConvolutionDepthWise::forward(bottom_blob, top_blob);
}

const int kernel_size = kernel_w;
const int stride = stride_w;

if (kernel_size > 7 || stride > 4 || dilation_w != 1 || dilation_h != 1)
{
return Convolution::forward(bottom_blob, top_blob);
return ConvolutionDepthWise::forward(bottom_blob, top_blob);
}

typedef void (*conv_func)(const Mat&, Mat&, const Mat&, const Mat&);
Expand Down

0 comments on commit 6612178

Please sign in to comment.