!6827 remove useless code

Merge pull request !6827 from zhangbuxue/remove_useless_code
pull/6827/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit f5ea4c39ea

@ -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));

Loading…
Cancel
Save