diff --git a/paddle/fluid/operators/dropout_op.cc b/paddle/fluid/operators/dropout_op.cc index 856bed8ac7e0ae75dcb87f6857e7997c1b04878f..cbfb795d6a23e1837b2a4095a4480c979e6b6d3b 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",