From ce7c18f667f421241775cac5231fcbb22465bc6e Mon Sep 17 00:00:00 2001 From: CtfGo Date: Wed, 8 Sep 2021 14:42:04 +0800 Subject: [PATCH] mark WhileOp AsExtra attribute (#35499) * mark WhileOp AsExtra attribute * revert kX and kOutputs --- paddle/fluid/operators/controlflow/while_op.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/controlflow/while_op.cc b/paddle/fluid/operators/controlflow/while_op.cc index 0433e0ae12c..6fa309f0e2d 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"); } -- GitLab