Browse Source

!6827 remove useless code

Merge pull request !6827 from zhangbuxue/remove_useless_code
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
f5ea4c39ea
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      mindspore/ccsrc/pipeline/pynative/pynative_execute.cc

+ 0
- 4
mindspore/ccsrc/pipeline/pynative/pynative_execute.cc View File

@@ -1181,10 +1181,6 @@ py::tuple RunOp(const py::args &args) {
try { try {
return PynativeExecutor::GetInstance()->RunOpInner(args); return PynativeExecutor::GetInstance()->RunOpInner(args);
} catch (const py::error_already_set &ex) { } 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(); PynativeExecutor::GetInstance()->Clean();
// re-throw this exception to Python interpreter to handle it // re-throw this exception to Python interpreter to handle it
throw(py::error_already_set(ex)); throw(py::error_already_set(ex));


Loading…
Cancel
Save