fix two issues: dump with input_output=1 and log type name

This commit is contained in:
TinaMengtingZhang 2021-06-22 14:10:15 -04:00
parent 30ea9eb97c
commit 6b090679ab
2 changed files with 4 additions and 1 deletions

View File

@ -221,6 +221,9 @@ void E2eDump::DumpParametersAndConst(const session::KernelGraph *graph, const st
const Debugger *debugger) {
MS_EXCEPTION_IF_NULL(graph);
auto &dump_json_parser = DumpJsonParser::GetInstance();
if (!dump_json_parser.OutputNeedDump()) {
return;
}
MS_LOG(INFO) << "Start e2e dump parameters and Const values";
bool trans_flag = dump_json_parser.trans_flag();
std::map<std::string, size_t> const_map;

View File

@ -111,7 +111,7 @@ bool IsTypeDebuggerSupported(TypeId type) {
if (type < TypeId::kNumberTypeEnd && type > TypeId::kNumberTypeBegin && type != kNumberTypeComplex64) {
return true;
} else {
MS_LOG(WARNING) << "Debugger does not support type id: " << type;
MS_LOG(INFO) << "Debugger does not support type: " << TypeIdLabel(type);
return false;
}
}