Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

The way to solve the error complaint in MKLDNNLayer

Open kuke opened this issue 9 years ago • 1 comments

When building the latest paddle, one may meet the error in MKLDNNLayer:

error: no matching function for call to 'mkldnn::sum::primitive_desc::primitive_des(mkldnn::memory::desc, std::vector<float>&, std::vector<mkldnn::memory::primitive_desc>&)' 

@luotao1 provides one solution that removes the related subdirectories in the build directory:

rm -r build/third_party/mkldnn
rm -r build/third_party/install/mkldnn

If similar errors occur in this layer, please try the same solution first.

kuke avatar Nov 09 '17 07:11 kuke

That's is the common issue when third party updated. I have even encountered an similar issue when engine updated.

Just rm the older build and rebuild again.

tensor-tang avatar Nov 09 '17 07:11 tensor-tang