Browse Source

save and get err msg

pull/289/head
baker 4 years ago
parent
commit
799557be2c
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      ge/ir_build/ge_ir_build.cc

+ 9
- 0
ge/ir_build/ge_ir_build.cc View File

@@ -35,6 +35,7 @@
#include "ir_build/atc_ir_common.h" #include "ir_build/atc_ir_common.h"
#include "model/ge_model.h" #include "model/ge_model.h"
#include "graph/shape_refiner.h" #include "graph/shape_refiner.h"
#include "common/util/error_manager/error_manager.h"


using std::string; using std::string;
using namespace std; using namespace std;
@@ -129,6 +130,14 @@ graphStatus aclgrphBuildInitialize(std::map<std::string, std::string> global_opt
} }
} }
GELOGW("gelib has been initialized!"); GELOGW("gelib has been initialized!");

std::string path_base = ge::GELib::GetPath();
int ret = ErrorManager::GetInstance().Init(path_base);
if (ret != 0) {
DOMI_LOGE("ErrorManager init fail !");
return ret;
}

return GRAPH_SUCCESS; return GRAPH_SUCCESS;
} }




Loading…
Cancel
Save