fix inconsistent wp value issue in offline dbg

This commit is contained in:
Parastoo Ashtari 2021-08-31 14:28:43 -04:00
parent f290098e3d
commit d76d1df56d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}