Openpose: mkldnn_inner_product_layer.cpp:357:2: error: this ‘else’

Created on 9 May 2018  Â·  4Comments  Â·  Source: CMU-Perceptual-Computing-Lab/openpose

OS: ubuntu 17
CPU only

I have below error when compiling, any idea ?

38%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_concat_layer.cpp.o
[ 38%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_convolution_layer.cpp.o
[ 39%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_eltwise_layer.cpp.o
[ 39%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_inner_product_layer.cpp.o
[ 39%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_lrn_layer.cpp.o
[ 41%] Building CXX object src/caffe/CMakeFiles/caffe.dir/layers/mkldnn_pooling_layer.cpp.o
/home/osboxes/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp: In member function ‘void caffe::MKLDNNInnerProductLayer::InitInnerProductBwd(const std::vector>&, const std::vector&, const std::vector>&)’:
/home/osboxes/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:357:2: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
else
^~
/home/osboxes/openpose/3rdparty/caffe/src/caffe/layers/mkldnn_inner_product_layer.cpp:361:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
ipBwdData_desc.reset(new inner_product_backward_data::desc(init_bottom_md, init_weights_md, init_top_md));
^
~~~

read posting rules... stalold

Most helpful comment

To fix, add 3 spaces at the beginning of lines 354 and 357 and 4 spaces at the beginning of lines 355 and 358.

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

The problem is still there although it has been fixed in Intel Caffe.

To fix, add 3 spaces at the beginning of lines 354 and 357 and 4 spaces at the beginning of lines 355 and 358.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jerry7767 picture jerry7767  Â·  3Comments

bowrian picture bowrian  Â·  3Comments

RuWang15 picture RuWang15  Â·  4Comments

nigellima picture nigellima  Â·  5Comments

Bardo91 picture Bardo91  Â·  3Comments