回退 'Pull Request !418 : ge_api_error_codes.h delete ascend_string.h'

pull/420/head
计晨 4 years ago committed by Gitee
parent fbed6e2a6d
commit 009920c7d1

@ -20,6 +20,7 @@
#include <map>
#include <string>
#include "ge_error_codes.h"
#include "graph/ascend_string.h"
namespace ge {
#ifdef __GNUC__
@ -62,6 +63,13 @@ class StatusFactory {
return iter_find->second;
}
void GetErrDesc(uint32_t err, AscendString &err_desc) {
auto iter_find = err_desc_.find(err);
if (iter_find != err_desc_.end()) {
err_desc = AscendString((iter_find->second).c_str());
}
}
protected:
StatusFactory() {}
~StatusFactory() {}

Loading…
Cancel
Save