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 #302

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
11 changes: 7 additions & 4 deletions src/caffe/layers/mkldnn_inner_product_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,13 @@ void MKLDNNInnerProductLayer<Dtype>::InitInnerProductFwd(const vector<Blob<Dtype
#pragma omp parallel for if (count > 1)
#endif
for(int i=0; i<count; i++){
if (this->scale_params_[i] == 0.0)
scale_bias[i] = 1.0;
else
scale_bias[i] = this->scale_in_[0] * this->scale_params_[i];
if (this->scale_params_[i] == 0.0){
scale_bias[i] = 1.0;
}
else{
scale_bias[i] = this->scale_in_[0] * this->scale_params_[i];
}

}
} else{
scale_bias[0] = 1.0f;
Expand Down