Skip to content

Commit b720d3f

Browse files
committed
Revert "add limit to avoid using submanifold conv when kernel is even"
This reverts commit a29dcd0.
1 parent a29dcd0 commit b720d3f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/caffe/layers/conv_layer.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ void ConvolutionLayer<Dtype>::compute_output_shape() {
2525
const int kernel_extent = dilation_data[i] * (kernel_shape_data[i] - 1) + 1;
2626
int output_dim;
2727
//<--CUSTOMIZATION
28-
if(this->submanifold_sparse_)
29-
{
30-
if(kernel_shape_data[i] % 2 == 0)
31-
{
32-
LOG(WARNING)<<"kernel shape "<<i<<" is "<<kernel_shape_data[i]<<", "
33-
"we don't suppport even kernel size for submanifold sparse conv feature! Using normal conv computation instead.\n";
34-
this->submanifold_sparse_ = false;
35-
}
36-
}
37-
3828
if (pad_l!=0 || pad_r!=0 || pad_t!=0 || pad_b!=0){ //only support 2D
3929
if (i==0) {
4030
output_dim = (input_dim + pad_t + pad_b - kernel_extent) / stride_data[i] + 1;

0 commit comments

Comments
 (0)