MCPcopy Create free account
hub / github.com/apache/tvm-ffi / Global

Method Global

src/ffi/function.cc:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 static GlobalFunctionTable* Global() {
131 // We deliberately create a new instance via raw new
132 // This is because GlobalFunctionTable can contain callbacks into
133 // the host language (Python) and the resource can become invalid
134 // indeterministic order of destruction and forking.
135 // The resources will only be recycled during program exit.
136 static GlobalFunctionTable* inst = new GlobalFunctionTable();
137 return inst;
138 }
139
140 private:
141 Map<String, Any> table_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected