已合并
Error Message整改 #3317
ligen75创建于 6月13日
Error Message整改 #3317
已合并
从已删除 :master合入到cann/ops-mathmaster
共 2 个文件变更+8-8
| @@ -99,8 +99,8 @@ ge::graphStatus AddNTiling::GetCompileInfo() | |||
| 99 | ubSize_ = compileInfo->ubSize; | 99 | ubSize_ = compileInfo->ubSize; |
| 100 | OP_CHECK_IF( | 100 | OP_CHECK_IF( |
| 101 | (coreNum_ <= 0 || ubSize_ <= 0), | 101 | (coreNum_ <= 0 || ubSize_ <= 0), |
| 102 | - OP_LOGE( | 102 | + OP_LOGE_FOR_INVALID_VALUES_WITH_REASON( |
| 103 | - tilingContext->GetNodeName(), "AddN GetCompileInfo Failed, coreNum:%ld, ubSize:%ld.", coreNum_, ubSize_), | 103 | + tilingContext->GetNodeName(), "coreNum,ubSize", std::to_string(coreNum_)+","+std::to_string(ubSize_),"The values of coreNum,ubSize must be greater than 0"), |
| 104 | return ge::GRAPH_FAILED); | 104 | return ge::GRAPH_FAILED); |
| 105 | return ge::GRAPH_SUCCESS; | 105 | return ge::GRAPH_SUCCESS; |
| 106 | } | 106 | } |
| @@ -38,9 +38,9 @@ static ge::graphStatus TilingPrepareForPow(gert::TilingParseContext* context) | |||
| 38 | compileInfo->coreNum = ascendcPlatform.GetCoreNumAiv(); | 38 | compileInfo->coreNum = ascendcPlatform.GetCoreNumAiv(); |
| 39 | OP_CHECK_IF( | 39 | OP_CHECK_IF( |
| 40 | (compileInfo->coreNum <= 0), | 40 | (compileInfo->coreNum <= 0), |
| 41 | - OP_LOGE( | 41 | + OP_LOGE_FOR_INVALID_VALUE_WITH_REASON( |
| 42 | - context->GetNodeName(), "Get core num failed, core num: %u", | 42 | + context->GetNodeName(), "coreNum",std::to_string(compileInfo->coreNum), |
| 43 | - static_cast<uint32_t>(compileInfo->coreNum)), | 43 | + "The value of coreNum must be greater than 0"), |
| 44 | return ge::GRAPH_FAILED); | 44 | return ge::GRAPH_FAILED); |
| 45 | 45 | ||
| 46 | uint64_t ubSize; | 46 | uint64_t ubSize; |
| @@ -48,8 +48,8 @@ static ge::graphStatus TilingPrepareForPow(gert::TilingParseContext* context) | |||
| 48 | compileInfo->ubSize = ubSize; | 48 | compileInfo->ubSize = ubSize; |
| 49 | OP_CHECK_IF( | 49 | OP_CHECK_IF( |
| 50 | (compileInfo->ubSize <= 0), | 50 | (compileInfo->ubSize <= 0), |
| 51 | - OP_LOGE( | 51 | + OP_LOGE_FOR_INVALID_VALUE_WITH_REASON( |
| 52 | - context->GetNodeName(), "Get ub size failed, ub size: %u", static_cast<uint32_t>(compileInfo->ubSize)), | 52 | + context->GetNodeName(), "ubSize", std::to_string(compileInfo->ubSize), "The value of ubSize must be greater than 0"), |
| 53 | return ge::GRAPH_FAILED); | 53 | return ge::GRAPH_FAILED); |
| 54 | compileInfo->isRegBase = Ops::Base::IsRegbaseSocVersion(context); | 54 | compileInfo->isRegBase = Ops::Base::IsRegbaseSocVersion(context); |
| 55 | compileInfo->blockSize = Ops::Base::GetUbBlockSize(context); | 55 | compileInfo->blockSize = Ops::Base::GetUbBlockSize(context); |
| @@ -59,4 +59,4 @@ static ge::graphStatus TilingPrepareForPow(gert::TilingParseContext* context) | |||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | IMPL_OP_OPTILING(Pow).Tiling(TilingForPow).TilingParse<PowCompileInfo>(TilingPrepareForPow); | 61 | IMPL_OP_OPTILING(Pow).Tiling(TilingForPow).TilingParse<PowCompileInfo>(TilingPrepareForPow); |
| 62 | -} // namespace optiling | 62 | +} // namespace optiling |