MCPcopy Index your code
hub / github.com/apache/tvm / listGlobalFuncNames

Method listGlobalFuncNames

web/src/runtime.ts:1070–1080  ·  view source on GitHub ↗

* List all the global function names registered in the runtime. * @returns The name list.

()

Source from the content-addressed store, hash-verified

1068 * @returns The name list.
1069 */
1070 listGlobalFuncNames(): Array<string> {
1071 return this.withNewScope(() => {
1072 const functor = this.ctx.functionListGlobalNamesFunctor();
1073 const numNames = functor(new Scalar(-1, "int")) as number;
1074 const names = new Array<string>(numNames);
1075 for (let i = 0; i < numNames; i++) {
1076 names[i] = functor(new Scalar(i, "int")) as string;
1077 }
1078 return names;
1079 });
1080 }
1081 /**
1082 * Register function to be global function in tvm runtime.
1083 * @param name The name of the function.

Callers 4

example.jsFile · 0.45
wasi_example.jsFile · 0.45
test_tensor.jsFile · 0.45

Calls 1

withNewScopeMethod · 0.95

Tested by

no test coverage detected