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>
|
template <class T>
|
||||||
static T DlsymWithCast(void *handle, const char *symbol_name) {
|
static T DlsymWithCast(void *handle, const char *symbol_name) {
|
||||||
#ifndef _WIN32
|
#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
|
#else
|
||||||
T symbol = reinterpret_cast<T>(GetProcAddress(reinterpret_cast<HINSTANCE__ *>(handle), symbol_name));
|
T symbol = reinterpret_cast<T>(GetProcAddress(reinterpret_cast<HINSTANCE__ *>(handle), symbol_name));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -302,7 +302,6 @@ void ParallelContext::ParallelParameterContextCkptShape(const FuncGraphPtr &func
|
||||||
auto ret = param_shapes.try_emplace(param_node->name(), shape);
|
auto ret = param_shapes.try_emplace(param_node->name(), shape);
|
||||||
if (!ret.second) {
|
if (!ret.second) {
|
||||||
MS_LOG(EXCEPTION) << "The shape for parameter name " << param_node->name() << " is existed";
|
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;
|
MS_LOG(DEBUG) << "The parameter name is " << param_node->name() << ", the shape is " << shape;
|
||||||
|
|
Loading…
Reference in New Issue