int TVMArrayAlloc(const tvm_index_t* shape, int ndim, int dtype_code, int dtype_bits, int dtype_lanes, int device_type, int device_id, TVMArrayHandle* out);
int TVMArrayCopyFromBytes(TVMArrayHandle handle, void* data, size_t nbytes);
int TVMArrayCopyFromTo(TVMArrayHandle from, TVMArrayHandle to, TVMStreamHandle stream);
int TVMArrayCopyToBytes(TVMArrayHandle handle, void* data, size_t nbytes);
int TVMArrayFree(TVMArrayHandle handle);
typedef int (TVMBackendPackedCFunc)(TVMValue args, int* type_codes, int num_args, TVMValue* out_ret_value, int* out_ret_tcode);
int TVMCFuncSetReturn(TVMRetValueHandle ret, TVMValue* value, int* type_code, int num_ret);
int TVMCbArgToReturn(TVMValue* value, int* code);
int TVMFuncCall(TVMFunctionHandle func, TVMValue* arg_values, int* type_codes, int num_args, TVMValue* ret_val, int* ret_type_code);
int TVMFuncFree(TVMFunctionHandle func);
int TVMFuncGetGlobal(const char* name, TVMFunctionHandle* out);
int TVMFuncListGlobalNames(int* outSize, const char*** outArray);
int TVMFuncRegisterGlobal( const char* name, TVMFunctionHandle f, int override);
const char *TVMGetLastError();
int TVMModFree(TVMModuleHandle mod);
int TVMModGetFunction(TVMModuleHandle mod, const char* func_name, int query_imports, TVMFunctionHandle *out);
int TVMModImport(TVMModuleHandle mod, TVMModuleHandle dep);
int TVMObjectFree(TVMObjectHandle obj);
int TVMObjectGetTypeIndex(TVMObjectHandle obj, unsigned* out_tindex);
int TVMObjectTypeIndex2Key(unsigned tindex, char** out_type_key);
int TVMObjectTypeKey2Index(const char* type_key, unsigned* out_tindex);
int TVMSynchronize(int device_type, int device_id, TVMStreamHandle stream);
void* TVMWasmAllocSpace(int size);
void TVMWasmFreeSpace(void* data);
int TVMWasmFuncCreateFromCFunc(void* resource_handle, TVMFunctionHandle *out);
int TVMWasmPackedCFunc(TVMValue* args, int* type_codes, int num_args, TVMRetValueHandle ret, void* resource_handle);
void TVMWasmPackedCFuncFinalizer(void* resource_handle);
A pointer to points to the raw address space.
Type for PackedFunc inthe TVMRuntime.
A pointer to points to the raw address space.
A pointer offset, need to add a base address to get a valid ptr.
All possible object types.
RPC magic header
Convert string to Uint8array.
The string.
The corresponding Uint8Array.
Convert Uint8array to string.
The corresponding string.
Internal assert helper
condition The condition to fail.
msg The message.
Create a new websocket for a given URL
The url.
DetectGPU device in the environment.
Detect library provider from the importObject.
The import object.
Get performance measurement.
Asynchrously instantiate a new Instance.
importObject can also be a LibraryProvider object, a WASI object, or an object containing wasmLibraryProvider field. We can take benefit of syslib implementations from the Emscripten by passing its generated js Module as the imports.
The source to be compiled.
The import objects.
The system logger.
Get the path to the wasm library in nodejs.
The wasm path.
Generated using TypeDoc
Objectconstructor