Browse Source

Custom pass register.

tags/v1.2.0
unknown 4 years ago
parent
commit
f175fed588
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      ge/graph/manager/graph_manager.cc
  2. +1
    -1
      metadef

+ 2
- 2
ge/graph/manager/graph_manager.cc View File

@@ -101,7 +101,7 @@
#include "graph/common/local_context.h"
#include "graph/common/omg_util.h"
#include "common/formats/utils/formats_trans_utils.h"
#include "external/register/register_pass.h"
#include "register/custom_pass_helper.h"

namespace {
const char *const kSummary = "Summary";
@@ -773,7 +773,7 @@ Status GraphManager::RunCustomPass(const GraphNodePtr &graph_node) {

GE_TIMESTAMP_START(RunCustomPass);
GraphPtr graph = std::const_pointer_cast<Graph>(const_graph);
GE_CHK_STATUS_RET(CustomPassHelper::Instance()->Run(graph), "Graph[%s] run custom pass fail.",
GE_CHK_STATUS_RET(CustomPassHelper::Instance().Run(graph), "Graph[%s] run custom pass fail.",
comp_graph->GetName().c_str());
GE_TIMESTAMP_END(RunCustomPass, "GraphBuilder::RunCustomPass");
return SUCCESS;


+ 1
- 1
metadef

@@ -1 +1 @@
Subproject commit 37a90f0dfd797306e99ec32a688be32a9ad835a4
Subproject commit 44bcbb5ea25ada1a5393aa4c7f554d40b6859b18

Loading…
Cancel
Save