diff --git a/core/lib/graph_executor.cpp b/core/lib/graph_executor.cpp index 0d8370cbe..d806695e0 100644 --- a/core/lib/graph_executor.cpp +++ b/core/lib/graph_executor.cpp @@ -571,9 +571,9 @@ Graph* GraphExecutor::GetOptimizedGraph(void) if(exec_handle_ == nullptr || exec_engine_ == nullptr) return nullptr; - Graph* graph = exec_engine_->GetOptimizedGraph(exec_handle_); - if(graph == nullptr) - graph = graph_; + Graph* graph = exec_engine_->GetOptimizedGraph(exec_handle_); + if(graph == nullptr) + graph = graph_; return graph; }