File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
paddle/fluid/inference/analysis Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ Analyzer::Analyzer() { Register("manager1", new DfgPassManagerImpl); }
101
101
102
102
void Analyzer::Run (Argument* argument) {
103
103
std::vector<std::string> passes;
104
+ passes.push_back (" graph_viz_pass" ); // add graphviz for debug.
104
105
#ifdef PADDLE_WITH_MKLDNN
105
106
if (use_mkldnn_) {
106
107
VLOG (3 ) << " Adding MKL-DNN placement pass" ;
@@ -110,13 +111,13 @@ void Analyzer::Run(Argument* argument) {
110
111
// infer_clean_graph_pass should be the first default pass
111
112
// after mkldnn_placement_pass.
112
113
passes.push_back (" infer_clean_graph_pass" );
114
+ passes.push_back (" graph_viz_pass" ); // add graphviz for debug.
113
115
for (auto & pass : ir_passes_) {
114
116
if (!disabled_ir_passes_.count (pass)) {
115
117
passes.push_back (pass);
116
118
passes.push_back (" graph_viz_pass" ); // add graphviz for debug.
117
119
}
118
120
}
119
- passes.push_back (" graph_viz_pass" );
120
121
argument->Set (kFluidToIrPassesAttr , new std::vector<std::string>(passes));
121
122
122
123
for (auto & x : data_) {
You can’t perform that action at this time.
0 commit comments