From cf74978a40bb641f8a7529f4e6c54bff2b22a50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=98=8E=E5=86=AC?= <78149749+winter-wang@users.noreply.github.com> Date: Tue, 14 Dec 2021 16:55:18 +0800 Subject: [PATCH] Revert "modify the fix_seed attribute in dropout op is a def attribute.test=develop (#38100)" This reverts commit f44add7b8f4a9063d1291fe56c9acda03b74153d. --- paddle/fluid/operators/dropout_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/dropout_op.cc b/paddle/fluid/operators/dropout_op.cc index 856bed8ac7e..cbfb795d6a2 100644 --- a/paddle/fluid/operators/dropout_op.cc +++ b/paddle/fluid/operators/dropout_op.cc @@ -88,8 +88,8 @@ class DropoutOpMaker : public framework::OpProtoAndCheckerMaker { "training. Setting this flag to true is only useful in " "unittest or for debug that always the same output units " "will be dropped.") - .SetDefault(false); - + .SetDefault(false) + .AsExtra(); AddAttr("seed", "Dropout random seed.").SetDefault(0).AsExtra(); AddAttr( "dropout_implementation", -- GitLab