Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
436
ProxyGraph* 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
444
class ProxyGraph::CurOprGuard {
445
public:
Callers
nothing calls this directly
Calls
2
invalid
Method · 0.80
reset
Method · 0.45
Tested by
no test coverage detected