Browse Source

!15119 change log level from info to warning when use dump in PyNative mode

From: @zhangbuxue
Reviewed-by: @ginfung,@guoqi1024
Signed-off-by: @jjfeing
pull/15119/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
b6f471f636
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/session/cpu_session.cc
  2. +1
    -1
      mindspore/ccsrc/debug/data_dump/dump_json_parser.cc

+ 1
- 1
mindspore/ccsrc/backend/session/cpu_session.cc View File

@@ -42,7 +42,7 @@ namespace mindspore {
namespace session {
void CPUSession::Init(uint32_t device_id) {
// Dump json config file if dump is enabled
DumpJsonParser::GetInstance().CopyJsonToDir();
DumpJsonParser::GetInstance().Parse();
InitExecutor(kCPUDevice, device_id);
}



+ 1
- 1
mindspore/ccsrc/debug/data_dump/dump_json_parser.cc View File

@@ -66,7 +66,7 @@ bool DumpJsonParser::IsDumpEnabled() {
auto context = MsContext::GetInstance();
MS_EXCEPTION_IF_NULL(context);
if (context->get_param<int>(MS_CTX_EXECUTION_MODE) == kPynativeMode) {
MS_LOG(INFO) << "Dump is disabled in PyNative mode";
MS_LOG(WARNING) << "Dump is disabled in PyNative mode";
return false;
}
return true;


Loading…
Cancel
Save