forked from mindspore-Ecosystem/mindspore
!14937 fix debugger recheck
From: @john_tzanakakis Reviewed-by: @yelihua,@lixiaohui33 Signed-off-by: @lixiaohui33
This commit is contained in:
commit
a821dac02d
|
@ -290,10 +290,10 @@ void DebugServices::GetSlotInfo(const std::string &file_name, const std::string
|
|||
std::string input_file = specific_dump_dir + "/" + file_name;
|
||||
std::string log_enabled = DbgLogger::verbose ? "" : "> /dev/null";
|
||||
std::string convert_command =
|
||||
"python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.pyc convert -d " + input_file + " -out " +
|
||||
"python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.py convert -d " + input_file + " -out " +
|
||||
out_dir + " -t bin " + log_enabled;
|
||||
(void)(system(convert_command.c_str()) + 1);
|
||||
convert_command = "python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.pyc convert -d " +
|
||||
convert_command = "python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.py convert -d " +
|
||||
input_file + " -out " + out_dir + " -f NCHW -t bin " + log_enabled;
|
||||
(void)(system(convert_command.c_str()) + 1);
|
||||
|
||||
|
@ -371,10 +371,10 @@ std::size_t DebugServices::GetShapeTypeInfo(const std::string &specific_dump_dir
|
|||
std::string input_file = specific_dump_dir + "/" + *file_name;
|
||||
std::string log_enabled = DbgLogger::verbose ? "" : "> /dev/null";
|
||||
std::string convert_command =
|
||||
"python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.pyc convert -d " + input_file + " -out " +
|
||||
"python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.py convert -d " + input_file + " -out " +
|
||||
*out_dir + " -t bin " + log_enabled;
|
||||
(void)(system(convert_command.c_str()) + 1);
|
||||
convert_command = "python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.pyc convert -d " +
|
||||
convert_command = "python /usr/local/Ascend/toolkit/tools/operator_cmp/compare/msaccucmp.py convert -d " +
|
||||
input_file + " -out " + *out_dir + " -f NCHW -t bin " + log_enabled;
|
||||
(void)(system(convert_command.c_str()) + 1);
|
||||
|
||||
|
|
|
@ -622,8 +622,10 @@ void Debugger::CommandLoop() {
|
|||
break;
|
||||
case DebuggerCommand::kRunCMD:
|
||||
ProcessRunCMD(reply);
|
||||
// exit loop
|
||||
run = true;
|
||||
if (GetRunLevel(reply) != "recheck") {
|
||||
// exit loop
|
||||
run = true;
|
||||
}
|
||||
break;
|
||||
case DebuggerCommand::kSetCMD:
|
||||
ProcessKSetCMD(reply);
|
||||
|
|
Loading…
Reference in New Issue