|
|
@@ -441,16 +441,10 @@ Status DumpProperties::SetDumpDebugOptions() { |
|
|
|
if (enable_dump_debug_ == kEnableFlag) { |
|
|
|
std::string dump_debug_mode; |
|
|
|
if (GetContext().GetOption(OPTION_EXEC_DUMP_DEBUG_MODE, dump_debug_mode) == GRAPH_SUCCESS) { |
|
|
|
GELOGD("Get dump debug mode %s successfully", dump_debug_mode.c_str()); |
|
|
|
GELOGD("Get ge.exec.dumpDebugMode %s successfully", dump_debug_mode.c_str()); |
|
|
|
} else { |
|
|
|
REPORT_INPUT_ERROR("E10001", std::vector<std::string>({"parameter", "value", "reason"}), |
|
|
|
std::vector<std::string>({ |
|
|
|
"ge.exec.dumpDebugMode", |
|
|
|
dump_debug_mode, |
|
|
|
"ge.exec.dumpDebugMode is not set."})); |
|
|
|
GELOGE(PARAM_INVALID, "[Check][dump_debug_mode] failed. Dump debug mode is not set."); |
|
|
|
|
|
|
|
return PARAM_INVALID; |
|
|
|
GELOGW("ge.exec.dumpDebugMode is not set."); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|
if (dump_debug_mode == OP_DEBUG_AICORE) { |
|
|
|