Skip to content

Commit 21b7f4a

Browse files
author
gaoyuan
committed
Remove redundancy codes
1 parent 3bce32b commit 21b7f4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

paddle/gserver/layers/CrossChannelNormLayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ void CrossChannelNormLayer::forward(PassType passType) {
5252
Matrix::resizeOrCreate(spatialBuffer_, 1, spatialDim, false, useGpu_);
5353
Matrix::resizeOrCreate(normBuffer_, batchSize, spatialDim, false, useGpu_);
5454
normBuffer_->zeroMem();
55-
dataBuffer_->zeroMem();
5655
// add eps to avoid overflow
5756
normBuffer_->addScalar(*normBuffer_, 1e-6);
5857
inV->square2(*dataBuffer_);

0 commit comments

Comments
 (0)