Browse Source

!1937 fix dump step check

Merge pull request !1937 from HW_KK/dump-option-check
tags/v1.5.1
i-robot Gitee 3 years ago
parent
commit
85b5d00d1b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/common/dump/dump_properties.cc

+ 1
- 1
ge/common/dump/dump_properties.cc View File

@@ -204,7 +204,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY DumpProperties &DumpProperties:
FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status DumpProperties::SetDumpOptions() {
if (enable_dump_ == kEnableFlag) {
std::string dump_step;
if (GetContext().GetOption(OPTION_EXEC_DUMP_STEP, dump_step) == GRAPH_SUCCESS) {
if (GetContext().GetOption(OPTION_EXEC_DUMP_STEP, dump_step) == GRAPH_SUCCESS && !dump_step.empty()) {
GE_CHK_STATUS_RET(CheckDumpStep(dump_step), "[Check][dump_step] failed.");
GELOGI("Get dump step %s successfully", dump_step.c_str());
SetDumpStep(dump_step);


Loading…
Cancel
Save