|
|
|
@@ -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."); |
|
|
|
|