!8891 tbe select error, provide error msg

From: @jjfeing
Reviewed-by: @kisnwang,@chujinjin
Signed-off-by: @chujinjin
This commit is contained in:
mindspore-ci-bot 2020-11-23 16:16:45 +08:00 committed by Gitee
commit 2ea6a38ce8
1 changed files with 4 additions and 1 deletions

View File

@ -491,7 +491,10 @@ std::string TbeKernelSelect::OpSelectFormat() {
}
res_json_str = AscendKernelBuildClient::Instance().SelectFormat(kernel_json.dump());
if (res_json_str.empty()) {
MS_LOG(EXCEPTION) << "op select format error.";
MS_LOG(EXCEPTION) << "Op select format error.";
}
if (res_json_str.find("TBEException") != std::string::npos) {
MS_LOG(EXCEPTION) << "Dynamic op select failed: " << res_json_str;
}
MS_LOG(INFO) << "Dynamic select foramt response result:" << res_json_str;
return res_json_str;