From 5368b365129e36b16b3a142063155b8b5b07e7ed Mon Sep 17 00:00:00 2001 From: juncaipeng <52520497+juncaipeng@users.noreply.github.com> Date: Mon, 19 Aug 2019 14:30:10 +0800 Subject: [PATCH] remove the warning for reminding user to avoid using the OriginProgram method, test=develop (#19244) This log information may annoy users who don't need to care about it. --- paddle/fluid/framework/ir/graph.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/paddle/fluid/framework/ir/graph.h b/paddle/fluid/framework/ir/graph.h index fff015d4a6f..44ba4d3d2c5 100644 --- a/paddle/fluid/framework/ir/graph.h +++ b/paddle/fluid/framework/ir/graph.h @@ -200,12 +200,7 @@ class Graph { // WARN: After a series of passes, the current graph can be quite // different from OriginProgram. Caller shouldn't assume much from // the returned OriginProgram. - const ProgramDesc &OriginProgram() const { - LOG(WARNING) << "WARN: After a series of passes, the current graph can be " - "quite different from OriginProgram. So, please avoid " - "using the `OriginProgram()` method!"; - return program_; - } + const ProgramDesc &OriginProgram() const { return program_; } // This method takes ownership of `node`. ir::Node *AddNode(ir::Node *node) { -- GitLab