Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Fix build breaks on ubuntu 18.04 #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/caffe/layers/mkldnn_inner_product_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,11 @@ void MKLDNNInnerProductLayer<Dtype>::InitInnerProductBwd(const vector<Blob<Dtype
// Initialize inner_product primitive descriptor
shared_ptr<inner_product_backward_data::desc> ipBwdData_desc;
shared_ptr<inner_product_backward_weights::desc> ipBwdWeights_desc;
if (this->bias_term_)
ipBwdWeights_desc.reset(new inner_product_backward_weights::desc(init_bottom_md, init_weights_md
if (this->bias_term_)
ipBwdWeights_desc.reset(new inner_product_backward_weights::desc(init_bottom_md, init_weights_md
, init_bias_md, init_top_md));
else
ipBwdWeights_desc.reset(new inner_product_backward_weights::desc(init_bottom_md, init_weights_md
else
ipBwdWeights_desc.reset(new inner_product_backward_weights::desc(init_bottom_md, init_weights_md
, init_top_md));

ipBwdData_desc.reset(new inner_product_backward_data::desc(init_bottom_md, init_weights_md, init_top_md));
Expand Down