diff --git a/paddle/fluid/operators/controlflow/while_op.cc b/paddle/fluid/operators/controlflow/while_op.cc index 0433e0ae12c71f6c152eaf14f0c68d2b243b9750..6fa309f0e2d90b56dec3ebb9d6e7a745bcb851d0 100644 --- a/paddle/fluid/operators/controlflow/while_op.cc +++ b/paddle/fluid/operators/controlflow/while_op.cc @@ -198,7 +198,8 @@ class WhileOpMaker : public framework::OpProtoAndCheckerMaker { AddAttr>(kSkipEagerDeletionVars, "Vars that would skip eager deletion." "Users should not set this manually.") - .SetDefault(std::vector()); + .SetDefault(std::vector()) + .AsExtra(); AddComment(R"DOC( )DOC"); }