From 4eadfc0749bbfe3039eb955eaa89debe87c55e50 Mon Sep 17 00:00:00 2001 From: Xinghai Sun Date: Wed, 6 Sep 2017 20:31:29 +0800 Subject: [PATCH] Correct typos for dropout operator. --- paddle/operators/dropout_op.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/paddle/operators/dropout_op.cc b/paddle/operators/dropout_op.cc index cd67beed94e..063377cee66 100644 --- a/paddle/operators/dropout_op.cc +++ b/paddle/operators/dropout_op.cc @@ -41,9 +41,7 @@ class DropoutOpMaker : public framework::OpProtoAndCheckerMaker { DropoutOpMaker(framework::OpProto *proto, framework::OpAttrChecker *op_checker) : OpProtoAndCheckerMaker(proto, op_checker) { - AddAttr("dropout_prob", - "Probability of randomly setting elements " - "to zero.") + AddAttr("dropout_prob", "Probability for dropping out units.") .SetDefault(.5f); AddAttr("seed", "Dropout random seed.").SetDefault(0); AddInput("X", "The input of dropout op."); @@ -56,7 +54,7 @@ Dropout Operator. "Dropout" refers to randomly dropping out units in a nerual network. It is a regularization technique for reducing overfitting by preventing neuron co-adaption during training. The dropout operator randomly set (according to -the given dropout probability) the output of some units to zero, while others +the given dropout probability) the outputs of some units to zero, while others being set to their inputs. )DOC"); } -- GitLab