Skip to content

Commit e602c70

Browse files
authored
Merge pull request #5582 from tensor-tang/refine
remove unused code and fix typo
2 parents 5fe9746 + 2826ccb commit e602c70

File tree

6 files changed

+1
-9
lines changed

6 files changed

+1
-9
lines changed

paddle/gserver/layers/MKLDNNAddtoLayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void MKLDNNAddtoLayer::reshape(
5454
ow = iw;
5555
reshapeOutput(oh, ow);
5656
resizeOutput(bs, oc * oh * ow);
57-
printSizeInfo();
5857
}
5958

6059
void MKLDNNAddtoLayer::resetFwd(std::vector<primitive>& pipeline,

paddle/gserver/layers/MKLDNNBatchNormLayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ void MKLDNNBatchNormLayer::reshape(
125125
<< "Input channel can not be changed";
126126
reshapeOutput(oh, ow);
127127
resizeOutput(bs, oc * oh * ow);
128-
printSizeInfo();
129128
}
130129

131130
void MKLDNNBatchNormLayer::resetFwd(std::vector<primitive>& pipeline,

paddle/gserver/layers/MKLDNNConvLayer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ void MKLDNNConvLayer::reshape(
102102

103103
reshapeOutput(oh, ow);
104104
resizeOutput(bs, oc * oh * ow);
105-
106-
printSizeInfo();
107105
}
108106

109107
void MKLDNNConvLayer::resetFwd(std::vector<primitive>& pipeline,

paddle/gserver/layers/MKLDNNConvLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MKLDNNConvLayer : public MKLDNNLayer {
9292
void printSizeInfo() override {
9393
MKLDNNLayer::printSizeInfo();
9494
VLOG(MKLDNN_SIZES) << getName() << ": fh: " << fh_ << ", fw: " << fw_
95-
<< ": ph: " << ph_ << ", pw: " << pw_ << ", sh: " << sh_
95+
<< ", ph: " << ph_ << ", pw: " << pw_ << ", sh: " << sh_
9696
<< ", sw: " << sw_ << ", dh: " << dh_ << ", dw: " << dw_;
9797
}
9898

paddle/gserver/layers/MKLDNNFcLayer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ void MKLDNNFcLayer::reshape(
8484

8585
reshapeOutput(oh, ow);
8686
resizeOutput(bs, oc);
87-
88-
printSizeInfo();
8987
}
9088

9189
void MKLDNNFcLayer::resetFwd(std::vector<primitive>& pipeline,

paddle/gserver/layers/MKLDNNPoolLayer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ void MKLDNNPoolLayer::reshape(
7171
reshapeOutput(oh, ow);
7272

7373
resizeOutput(bs, oc * oh * ow);
74-
75-
printSizeInfo();
7674
}
7775

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

0 commit comments

Comments
 (0)