Browse Source

display model info

pull/647/head
wangwenhua1@huawei.com 4 years ago
parent
commit
e1e967be72
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ge/generator/ge_generator.cc

+ 3
- 3
ge/generator/ge_generator.cc View File

@@ -493,14 +493,14 @@ bool GeGenerator::Impl::SetOppVersionInfo(AttrHolder &obj) {

bool GeGenerator::Impl::SetOmSystemInfo(AttrHolder &obj) {
std::string soc_version;
Status ret = ge::GetContext().GetOption(ge::SOC_VERSION, soc_version);
GELOGI("SetOmSystemInfo soc_version: %s", soc_version.c_str());S
(void)ge::GetContext().GetOption(ge::SOC_VERSION, soc_version);
GELOGI("SetOmSystemInfo soc_version: %s", soc_version.c_str());
if (!ge::AttrUtils::SetStr(obj, "soc_version", soc_version)) {
GELOGW("SetStr of soc_version failed.");
return false;
}
std::string framework_type;
Status ret = ge::GetContext().GetOption(ge::FRAMEWORK_TYPE, framework_type);
(void)ge::GetContext().GetOption(ge::FRAMEWORK_TYPE, framework_type);
GELOGI("SetOmSystemInfo framework_type: %s", framework_type.c_str());
if (!ge::AttrUtils::SetStr(obj, "framework_type", framework_type)) {
GELOGW("SetStr of framework_type failed.");


Loading…
Cancel
Save