Skip to content

Commit

Permalink
Fix bug for convolution on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
Corea authored and nihui committed Sep 18, 2017
1 parent f8dc80f commit c641db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/x86/convolution_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int Convolution_x86::forward(const Mat& bottom_blob, Mat& top_blob) const
// convolv with NxN kernel
// value = value + bias

if (kernel_size > 5 || dilation != 1)
if (kernel_size > 5 || stride > 5 || dilation != 1)
{
return Convolution::forward(bottom_blob, top_blob);
}
Expand Down

0 comments on commit c641db8

Please sign in to comment.