| 394 | return str; |
| 395 | } |
| 396 | void SetPythonStack() { |
| 397 | if (FLAGS_check_nan_inf && FLAGS_check_nan_inf_level == 0) { |
| 398 | VLOG(4) << "this is SetPythonStack"; |
| 399 | std::string str = GetPythonStack(); |
| 400 | std::string last = str + egr::Controller::Instance().GetPythonStack(); |
| 401 | egr::Controller::Instance().SetPythonStack(last); |
| 402 | } |
| 403 | |
| 404 | if (FLAGS_call_stack_level == 3) { |
| 405 | VLOG(6) << "this is SetPythonStack"; |
| 406 | std::string str = GetPythonStack(); |
| 407 | egr::Controller::Instance().SetPythonStack(str); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | std::shared_ptr<jit::Function> CastPyArg2JitFunction(PyObject* obj, |
| 412 | ssize_t arg_pos) { |
no test coverage detected