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

Method registerObjectFactoryFuncs

web/src/runtime.ts:1933–1942  ·  view source on GitHub ↗

Register all object factory

()

Source from the content-addressed store, hash-verified

1931
1932 /** Register all object factory */
1933 private registerObjectFactoryFuncs(): void {
1934 this.registerObjectConstructor("ffi.Array",
1935 (handle: number, lib: FFILibrary, ctx: RuntimeContext) => {
1936 return new TVMArray(handle, lib, ctx);
1937 });
1938 this.registerObjectConstructor("ffi.Module",
1939 (handle: number, lib: FFILibrary, ctx: RuntimeContext) => {
1940 return new Module(handle, lib, ctx);
1941 });
1942 }
1943
1944 /** Register global packed functions needed by the backend to the env. */
1945 private registerEnvGlobalPackedFuncs(): void {

Callers 1

constructorMethod · 0.95

Calls 1

Tested by

no test coverage detected