Skip to content

Commit

Permalink
Merge pull request #5582 from tensor-tang/refine
Browse files Browse the repository at this point in the history
remove unused code and fix typo
  • Loading branch information
luotao1 committed Nov 13, 2017
2 parents 5fe9746 + 2826ccb commit e602c70
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion paddle/gserver/layers/MKLDNNAddtoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void MKLDNNAddtoLayer::reshape(
ow = iw;
reshapeOutput(oh, ow);
resizeOutput(bs, oc * oh * ow);
printSizeInfo();
}

void MKLDNNAddtoLayer::resetFwd(std::vector<primitive>& pipeline,
Expand Down
1 change: 0 additions & 1 deletion paddle/gserver/layers/MKLDNNBatchNormLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ void MKLDNNBatchNormLayer::reshape(
<< "Input channel can not be changed";
reshapeOutput(oh, ow);
resizeOutput(bs, oc * oh * ow);
printSizeInfo();
}

void MKLDNNBatchNormLayer::resetFwd(std::vector<primitive>& pipeline,
Expand Down
2 changes: 0 additions & 2 deletions paddle/gserver/layers/MKLDNNConvLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ void MKLDNNConvLayer::reshape(

reshapeOutput(oh, ow);
resizeOutput(bs, oc * oh * ow);

printSizeInfo();
}

void MKLDNNConvLayer::resetFwd(std::vector<primitive>& pipeline,
Expand Down
2 changes: 1 addition & 1 deletion paddle/gserver/layers/MKLDNNConvLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MKLDNNConvLayer : public MKLDNNLayer {
void printSizeInfo() override {
MKLDNNLayer::printSizeInfo();
VLOG(MKLDNN_SIZES) << getName() << ": fh: " << fh_ << ", fw: " << fw_
<< ": ph: " << ph_ << ", pw: " << pw_ << ", sh: " << sh_
<< ", ph: " << ph_ << ", pw: " << pw_ << ", sh: " << sh_
<< ", sw: " << sw_ << ", dh: " << dh_ << ", dw: " << dw_;
}

Expand Down
2 changes: 0 additions & 2 deletions paddle/gserver/layers/MKLDNNFcLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ void MKLDNNFcLayer::reshape(

reshapeOutput(oh, ow);
resizeOutput(bs, oc);

printSizeInfo();
}

void MKLDNNFcLayer::resetFwd(std::vector<primitive>& pipeline,
Expand Down
2 changes: 0 additions & 2 deletions paddle/gserver/layers/MKLDNNPoolLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ void MKLDNNPoolLayer::reshape(
reshapeOutput(oh, ow);

resizeOutput(bs, oc * oh * ow);

printSizeInfo();
}

void MKLDNNPoolLayer::resetFwd(std::vector<primitive>& pipeline,
Expand Down

0 comments on commit e602c70

Please sign in to comment.