!31626 Clearing codecheck warning for parallel common module

Merge pull request !31626 from liuluobin/clear_warning
This commit is contained in:
i-robot 2022-03-21 12:45:40 +00:00 committed by Gitee
commit 93fe5cf14b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,7 @@ inline static std::string GetDlErrorMsg() {
template <class T>
static T DlsymWithCast(void *handle, const char *symbol_name) {
#ifndef _WIN32
T symbol = reinterpret_cast<T>(dlsym(handle, symbol_name));
T symbol = reinterpret_cast<T>(reinterpret_cast<intptr_t>(dlsym(handle, symbol_name)));
#else
T symbol = reinterpret_cast<T>(GetProcAddress(reinterpret_cast<HINSTANCE__ *>(handle), symbol_name));
#endif

View File

@ -302,7 +302,6 @@ void ParallelContext::ParallelParameterContextCkptShape(const FuncGraphPtr &func
auto ret = param_shapes.try_emplace(param_node->name(), shape);
if (!ret.second) {
MS_LOG(EXCEPTION) << "The shape for parameter name " << param_node->name() << " is existed";
return;
}
MS_LOG(DEBUG) << "The parameter name is " << param_node->name() << ", the shape is " << shape;