MCPcopy Create free account
hub / github.com/apache/tvm / getGlobalFunc

Method getGlobalFunc

web/src/runtime.ts:1117–1119  ·  view source on GitHub ↗

* Get global PackedFunc from the runtime. * @param name The name of the function. * @returns The result function.

(name: string)

Source from the content-addressed store, hash-verified

1115 * @returns The result function.
1116 */
1117 getGlobalFunc(name: string): PackedFunc {
1118 return this.getGlobalFuncInternal(name, true);
1119 }
1120
1121 private getGlobalFuncInternal(name: string, autoAttachToScope = true): PackedFunc {
1122 const stack = this.lib.getOrAllocCallStack();

Callers 3

example.jsFile · 0.45
asyncInitServerMethod · 0.45

Calls 1

getGlobalFuncInternalMethod · 0.95

Tested by

no test coverage detected