!17950 [MS][LITE][CPU] code check

Merge pull request !17950 from liuzhongkai/codecheck2
This commit is contained in:
i-robot 2021-06-08 16:36:35 +08:00 committed by Gitee
commit 850e3d4b2a
3 changed files with 0 additions and 5 deletions

View File

@ -75,5 +75,4 @@ CudaRuntime::~CudaRuntime() { Uninit(); }
const GpuInfo &CudaRuntime::GetGpuInfo() { return gpu_info_; }
bool CudaRuntime::GetFp16Enable() const { return true; }
} // namespace mindspore::lite::cuda

View File

@ -27,5 +27,4 @@
namespace mindspore::lite::gpu {
const GpuInfo &GpuRuntime::GetGpuInfo() { return gpu_info_; }
} // namespace mindspore::lite::gpu

View File

@ -466,7 +466,6 @@ GpuInfo OpenCLRuntime::ParseGpuInfo(std::string device_name, std::string device_
if (device_name == "QUALCOMM Adreno(TM)") {
info.type = ADRENO;
sscanf(device_version.c_str(), "%*s%f%*s%d", &info.opencl_version, &info.model_num);
} else if (device_name.find("Mali") != std::string::npos) {
info.type = MALI;
@ -480,7 +479,6 @@ GpuInfo OpenCLRuntime::ParseGpuInfo(std::string device_name, std::string device_
}
sscanf(device_version.c_str(), "%*s%f%*s", &info.opencl_version);
}
return info;
}
@ -784,5 +782,4 @@ cl::Buffer *OpenCLRuntime::CreateSharedMemoryBuffer(size_t size, void *host_ptr)
}
return buffer;
}
} // namespace mindspore::lite::opencl