From fdbef206386d8be9ea36c5f7afb54f1d07d4517e Mon Sep 17 00:00:00 2001 From: wanghua Date: Thu, 30 Apr 2020 10:28:46 +0800 Subject: [PATCH] fix loss scale and task_sink_mode to false at the same time cause segmentation fault --- mindspore/ccsrc/session/ascend_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/session/ascend_session.cc b/mindspore/ccsrc/session/ascend_session.cc index 519a5aa8407..ace5e34335a 100755 --- a/mindspore/ccsrc/session/ascend_session.cc +++ b/mindspore/ccsrc/session/ascend_session.cc @@ -990,7 +990,7 @@ void AscendSession::MergeGraphExecOrder() { auto context_ptr = MsContext::GetInstance(); MS_EXCEPTION_IF_NULL(context_ptr); if (!context_ptr->enable_task_sink()) { - MS_LOG(INFO) << "Control sink network should run with task-sink mode!"; + MS_LOG(EXCEPTION) << "Control sink network should run with task-sink mode!"; } } // if first graph is common,the final graph has no label,then set the stream of final graph same with the first graph