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

Method get_default_graph

imperative/src/impl/proxy_graph.cpp:436–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436ProxyGraph* ProxyGraph::get_default_graph() {
437 static thread_local ProxyGraph inst;
438 if (inst.m_graph->invalid()) {
439 inst.reset();
440 }
441 return &inst;
442}
443
444class ProxyGraph::CurOprGuard {
445public:

Callers

nothing calls this directly

Calls 2

invalidMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected