MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / SetPythonStack

Function SetPythonStack

paddle/fluid/pybind/eager_utils.cc:396–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 return str;
395}
396void 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
411std::shared_ptr<jit::Function> CastPyArg2JitFunction(PyObject* obj,
412 ssize_t arg_pos) {

Callers 15

eager_api_linearFunction · 0.85
eager_api_run_custom_opFunction · 0.85
eager_method.ccFile · 0.85
CallScalarFunctionFunction · 0.85
tensor__add__methodFunction · 0.85
tensor__sub__methodFunction · 0.85
tensor__rsub__methodFunction · 0.85
tensor__mul__methodFunction · 0.85
tensor__div__methodFunction · 0.85
tensor__rdiv__methodFunction · 0.85
tensor__gt__methodFunction · 0.85

Calls 4

GetPythonStackFunction · 0.85
InstanceFunction · 0.85
GetPythonStackMethod · 0.45
SetPythonStackMethod · 0.45

Tested by

no test coverage detected