From a9da8e02a20e379966ed472be791e79510c7098d Mon Sep 17 00:00:00 2001 From: buxue Date: Thu, 24 Sep 2020 14:41:44 +0800 Subject: [PATCH] remove useless code --- 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 c807e3a2a1..230904793e 100644 --- a/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc +++ b/mindspore/ccsrc/pipeline/pynative/pynative_execute.cc @@ -1181,10 +1181,6 @@ py::tuple RunOp(const py::args &args) { try { return PynativeExecutor::GetInstance()->RunOpInner(args); } catch (const py::error_already_set &ex) { - // print function call stack info before release - std::ostringstream oss; - trace::TraceGraphEval(); - trace::GetEvalStackInfo(oss); PynativeExecutor::GetInstance()->Clean(); // re-throw this exception to Python interpreter to handle it throw(py::error_already_set(ex));