* List all the global function names registered in the runtime. * @returns The name list.
()
| 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. |
no test coverage detected