Skip to content

Commit 17c697c

Browse files
author
gaoyuan
committed
Remove redundancy codes
1 parent 784e242 commit 17c697c

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

doc/api/v2/config/layer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ sum_to_one_norm
110110
:noindex:
111111

112112
cross_channel_norm
113-
---------------
113+
------------------
114114
.. automodule:: paddle.v2.layer
115115
:members: cross_channel_norm
116116
:noindex:

paddle/gserver/layers/CrossChannelNormLayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ void CrossChannelNormLayer::backward(const UpdateCallback& callback) {
7878
Matrix::resizeOrCreate(sampleBuffer_, channels_, spatialDim, false, useGpu_);
7979
scaleDiff_->zeroMem();
8080
for (size_t i = 0; i < batchSize; i++) {
81-
spatialBuffer_->zeroMem();
8281
// propagate to param.
8382
MatrixPtr dataBufferTmp =
8483
Matrix::create(dataBuffer_->getData() + i * dataDim,

paddle/gserver/layers/NormLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ResponseNormLayer : public NormLayer {
6868
/**
6969
* This layer applys normalization across the channels of each sample to a
7070
* conv layer's output, and scales the output by a group of trainable factors
71-
* whose equal to the number of channels.
71+
* whose dimensions equal to the number of channels.
7272
* - Input: One and only one input layer are accepted.
7373
* - Output: The normalized data of the input data.
7474
* Reference:

0 commit comments

Comments
 (0)