MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_current_frameinfo

Function get_current_frameinfo

imperative/python/src/tensor.cpp:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 PYEXT17_TRANSLATE_EXC_RET(nullptr)
158}
159FrameInfoPtr get_current_frameinfo() {
160 auto frame = PyEval_GetFrame();
161 auto frameinfo = get_frameinfo_from_pyframe(frame);
162 return frameinfo;
163}
164
165namespace {
166

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected