已合并
【PR】: 重复加载op时打印的日志从error修改为warning #4181
嵇锴创建于 7月29日
【PR】: 重复加载op时打印的日志从error修改为warning #4181
已合并
共 1 个文件变更+3-2
| @@ -245,8 +245,9 @@ class GraphImpl { | |||
| 245 | AscendString name; | 245 | AscendString name; |
| 246 | (void)op.GetName(name); | 246 | (void)op.GetName(name); |
| 247 | const auto ret = op_list_.emplace(std::pair<std::string, ge::Operator>(name.GetString(), op)); | 247 | const auto ret = op_list_.emplace(std::pair<std::string, ge::Operator>(name.GetString(), op)); |
| 248 | - GE_CHK_BOOL_RET_STATUS(ret.second, GRAPH_FAILED, "[Check][Param] the op have added before, op name:%s.", | 248 | + if (!ret.second) { |
| 249 | - name.GetString()); | 249 | + GELOGW("[Check][Param] the op have added before, op name:%s.", name.GetString()); |
| 250 | + } | ||
| 250 | return GRAPH_SUCCESS; | 251 | return GRAPH_SUCCESS; |
| 251 | } | 252 | } |
| 252 | 253 | ||