forked from huawei/mindspore2022
fix inconsistent wp value issue in offline dbg
This commit is contained in:
parent
f290098e3d
commit
d76d1df56d
|
|
@ -132,7 +132,7 @@ class DebugServices {
|
|||
bool w_type = std::get<1>(check_node);
|
||||
auto found = w_name.find_last_of('/');
|
||||
if (found != std::string::npos && w_name.substr(found + 1) == tensor_name) return w_name;
|
||||
if ((w_type && (tensor_name.find(w_name) == location || w_name == "*")) || (!w_type && node_name == w_name)) {
|
||||
if ((w_type && (node_name == w_name || w_name == "*")) || (!w_type && node_name == w_name)) {
|
||||
return w_name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue