From d76d1df56da495eca24aca93530e3983bc4b34f6 Mon Sep 17 00:00:00 2001 From: Parastoo Ashtari Date: Tue, 31 Aug 2021 14:28:43 -0400 Subject: [PATCH] fix inconsistent wp value issue in offline dbg --- mindspore/ccsrc/debug/debug_services.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/debug/debug_services.h b/mindspore/ccsrc/debug/debug_services.h index d814b029589..3ef18011990 100644 --- a/mindspore/ccsrc/debug/debug_services.h +++ b/mindspore/ccsrc/debug/debug_services.h @@ -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; } }