Skip to content

Commit e537634

Browse files
committed
delete graph print pass. test=develop
1 parent 4f01de6 commit e537634

File tree

8 files changed

+12
-502
lines changed

8 files changed

+12
-502
lines changed

paddle/fluid/framework/details/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ cc_library(fuse_vars_op_handle SRCS fuse_vars_op_handle.cc DEPS op_handle_base s
5252

5353
cc_library(memory_optimize_helper SRCS memory_optimize_helper.cc DEPS graph graph_helper)
5454
cc_library(memory_optimize_pass SRCS memory_optimize_pass.cc DEPS memory_optimize_helper pass)
55-
cc_library(graph_print_pass SRCS graph_print_pass.cc DEPS graph_helper pass)
56-
cc_library(inplace_op_pass SRCS inplace_op_pass.cc DEPS memory_optimize_pass op_info graph_print_pass)
55+
cc_library(inplace_op_pass SRCS inplace_op_pass.cc DEPS memory_optimize_pass op_info)
5756
cc_library(modify_op_lock_and_record_event_pass SRCS modify_op_lock_and_record_event_pass.cc DEPS computation_op_handle op_graph_view multi_devices_helper)
5857
cc_library(memory_early_delete_pass SRCS memory_early_delete_pass.cc DEPS memory_optimize_pass computation_op_handle scale_loss_grad_op_handle rpc_op_handle
5958
all_reduce_op_handle reduce_op_handle broadcast_op_handle data_balance_op_handle graph graph_helper pass)
@@ -74,7 +73,6 @@ if (WITH_GPU)
7473
endif()
7574
cc_test(memory_optimize_helper_test SRCS memory_optimize_helper_test.cc memory_optimize_helper.cc DEPS framework_proto graph)
7675
cc_test(memory_optimize_pass_test SRCS memory_optimize_pass_test.cc memory_optimize_pass.cc memory_optimize_helper.cc DEPS framework_proto graph graph_helper op_registry pass)
77-
cc_test(graph_print_pass_test SRCS graph_print_pass_test.cc DEPS graph_print_pass framework_proto graph graph_helper op_registry pass)
7876

7977
cc_library(ssa_graph_executor SRCS ssa_graph_executor.cc DEPS ${SSA_GRAPH_EXECUTOR_DEPS})
8078

@@ -99,4 +97,4 @@ cc_library(build_strategy SRCS build_strategy.cc DEPS
9997
multi_devices_graph_print_pass multi_devices_graph_check_pass
10098
fuse_elewise_add_act_pass multi_batch_merge_pass
10199
fuse_relu_depthwise_conv_pass
102-
memory_optimize_pass lock_free_optimize_pass graph_print_pass)
100+
memory_optimize_pass lock_free_optimize_pass)

paddle/fluid/framework/details/build_strategy.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License. */
1717
#include <glog/logging.h>
1818
#include <memory>
1919

20-
#include "paddle/fluid/framework/details/graph_print_pass.h"
2120
#include "paddle/fluid/framework/details/memory_optimize_helper.h"
2221
#include "paddle/fluid/framework/details/multi_devices_graph_pass.h"
2322
#include "paddle/fluid/framework/details/multi_devices_graph_print_pass.h"
@@ -233,9 +232,6 @@ std::unique_ptr<ir::Graph> BuildStrategy::Apply(
233232
if (graph->Has(kAllOpDescs)) {
234233
graph->Erase(kAllOpDescs);
235234
}
236-
if (!graph->Has(kGraphviz)) {
237-
graph->Set<GraphvizNodes>(kGraphviz, new GraphvizNodes);
238-
}
239235
graph->Set<const std::vector<OpDesc *>>(
240236
kAllOpDescs,
241237
new std::vector<OpDesc *>(main_program.Block(0).AllOps()));
@@ -245,10 +241,6 @@ std::unique_ptr<ir::Graph> BuildStrategy::Apply(
245241
"GPU, skipped.";
246242
continue;
247243
}
248-
} else if (pass->Type() == "graph_print_path") {
249-
if (!graph->Has(kGraphviz)) {
250-
graph->Set<GraphvizNodes>(kGraphviz, new GraphvizNodes);
251-
}
252244
}
253245
graph = pass->Apply(std::move(graph));
254246
}
@@ -274,5 +266,4 @@ USE_PASS(all_reduce_deps_pass);
274266
USE_PASS(modify_op_lock_and_record_event_pass);
275267
USE_PASS(inplace_pass);
276268
USE_PASS(lock_free_optimize_pass);
277-
USE_PASS(graph_print_pass);
278269
USE_PASS(graph_to_program_pass);

paddle/fluid/framework/details/graph_print_pass.cc

Lines changed: 0 additions & 150 deletions
This file was deleted.

paddle/fluid/framework/details/graph_print_pass.h

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)