forked from mindspore-Ecosystem/mindspore
!31626 Clearing codecheck warning for parallel common module
Merge pull request !31626 from liuluobin/clear_warning
This commit is contained in:
commit
93fe5cf14b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue