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

Method reset

imperative/src/impl/proxy_graph.cpp:431–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 m_seq_comp_node_optimizer(new SeqCompNodeOptimizer()) {}
430
431void ProxyGraph::reset() {
432 mgb_assert(!m_cur_opr);
433 m_graph = ProxyGraphImpl::make(this);
434}
435
436ProxyGraph* ProxyGraph::get_default_graph() {
437 static thread_local ProxyGraph inst;

Callers 15

PyEnvMethod · 0.45
helper.cppFile · 0.45
TESTFunction · 0.45
run_graphFunction · 0.45
as_ndMethod · 0.45
parseMethod · 0.45
BlobDataMethod · 0.45
defragMethod · 0.45
makeFunction · 0.45
get_default_graphMethod · 0.45
on_comp_node_finalizeMethod · 0.45

Calls 1

makeFunction · 0.70

Tested by 3

PyEnvMethod · 0.36
TESTFunction · 0.36
run_graphFunction · 0.36