From abeb3aae84027a296cf310034e398f8a9271c1e1 Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Sun, 22 Jan 2017 16:55:26 +0800 Subject: [PATCH] Minor changes --- paddle/function/PadOp.cpp | 6 +++--- paddle/gserver/layers/PadLayer.h | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paddle/function/PadOp.cpp b/paddle/function/PadOp.cpp index df44fd0fa6..f1a0d2a1a9 100644 --- a/paddle/function/PadOp.cpp +++ b/paddle/function/PadOp.cpp @@ -79,10 +79,10 @@ void PadGrad(real* inGrad, * * Argument in this Function: * \param pad_ A struct object contains the padding size in each dimension. - * It has six integers. The channelStart and channelEnd indicates + * It has six integers. The channelStart and channelEnd indicate * how many zeros to add before and after the input in channel - * dimension. And the heightStart and heightEnd indicates padding - * in height dimension. The widthStart and widthEnd indicates the + * dimension. And the heightStart and heightEnd indicate padding + * in height dimension. The widthStart and widthEnd indicate the * padding in width dimension. * \param inputs A 4D tensor, only one input. * \param outputs A 4D tensor, the output value after padding. diff --git a/paddle/gserver/layers/PadLayer.h b/paddle/gserver/layers/PadLayer.h index 1f5a4a54a0..3e3a21a997 100644 --- a/paddle/gserver/layers/PadLayer.h +++ b/paddle/gserver/layers/PadLayer.h @@ -19,8 +19,9 @@ limitations under the License. */ namespace paddle { /** - * @brief response normalization across feature maps - * namely normalize in number of size_ channels + * \brief This layer pads zeros to inputs according to the specify dimension. + * The input and output is a 4D tensor. Padding zeros from the 2nd to + * the 4th dimenstion according padc_, padh_ and padw_. */ class PadLayer : public Layer { public: -- GitLab