Browse Source

assign invalid valiu while not find

tags/v1.2.0
chenyemeng 4 years ago
parent
commit
e12e117fbe
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ge/graph/load/new_model_manager/davinci_model.cc

+ 2
- 0
ge/graph/load/new_model_manager/davinci_model.cc View File

@@ -1872,6 +1872,8 @@ Status DavinciModel::GetAippType(uint32_t index, InputAippType &aipp_type, size_
const auto it = aipp_type_list_.find(index); const auto it = aipp_type_list_.find(index);
if (it == aipp_type_list_.end()) { if (it == aipp_type_list_.end()) {
GELOGW("There is no aipp releated info with index %u.", index); GELOGW("There is no aipp releated info with index %u.", index);
aipp_type = DATA_WITHOUT_AIPP;
aipp_index = 0xFFFFFFFF;
return SUCCESS; return SUCCESS;
} }




Loading…
Cancel
Save