提交 3f0ff333 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1718 clean codedex warning

Merge pull request !1718 from zyli2020/clean_codedex_warnings
......@@ -54,7 +54,7 @@ KernelRuntime *KernelRuntimeManager::GetSingleKernelRuntime(const std::string &d
return runtime_iter->second.get();
} else if (runtime_map_.size() > 0) {
auto cur_runtime_key = runtime_map_.begin()->first;
if (!cur_runtime_key.empty()) {
if (cur_runtime_key.rfind('_') != std::string::npos) {
auto cur_device_id = cur_runtime_key.substr(cur_runtime_key.rfind('_') + 1);
MS_LOG(EXCEPTION) << "Can't change device id in runtime, already set device id: " << cur_device_id
<< ", set device id: " << device_id << " failed";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册