From 70722e491c728ae79ea86f0e2c62fdfd272ff4e7 Mon Sep 17 00:00:00 2001 From: panfengfeng Date: Sun, 27 Sep 2020 10:38:03 +0800 Subject: [PATCH] sync log print from master tp r1.0 --- mindspore/ccsrc/pipeline/pynative/pynative_execute.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc b/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc index 8363be959c..c807e3a2a1 100644 --- a/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc +++ b/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc @@ -1185,10 +1185,6 @@ py::tuple RunOp(const py::args &args) { std::ostringstream oss; trace::TraceGraphEval(); trace::GetEvalStackInfo(oss); - // call py::print to output function call stack to STDOUT, in case of output the log to file, the user can see - // these info from screen, no need to open log file to find these info - py::print(oss.str()); - MS_LOG(ERROR) << oss.str(); PynativeExecutor::GetInstance()->Clean(); // re-throw this exception to Python interpreter to handle it throw(py::error_already_set(ex));