Skip to content

Commit

Permalink
fix the caffe2ncnn that "DepthwiseConvolution" loss group num param (T…
Browse files Browse the repository at this point in the history
…encent#540)

* fix the caffe2ncnn  bug that "DepthwiseConvolution" loss group num param
  • Loading branch information
BUG1989 authored and nihui committed Aug 23, 2018
1 parent 9e49144 commit d5df230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/caffe/caffe2ncnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ int main(int argc, char** argv)
fprintf(pp, " 6=%d", weight_blob.data_size());

int num_group = 1;
if (layer.type() == "ConvolutionDepthwise")
if (layer.type() == "ConvolutionDepthwise" || layer.type() == "DepthwiseConvolution")
{
num_group = convolution_param.num_output();
}
Expand Down

0 comments on commit d5df230

Please sign in to comment.