Write TFLite model to Wasm file system

PiperOrigin-RevId: 532482502
This commit is contained in:
Sebastian Schmidt
2023-05-16 09:25:44 -07:00
committed by Copybara-Service
parent d7fa4b95b5
commit 8bf6c63e92
5 changed files with 68 additions and 13 deletions
@@ -59,6 +59,14 @@ export declare interface WasmModule {
HEAPU32: Uint32Array;
HEAPF32: Float32Array;
HEAPF64: Float64Array;
FS_createDataFile:
(parent: string, name: string, data: Uint8Array, canRead: boolean,
canWrite: boolean, canOwn: boolean) => void;
FS_createPath:
(parent: string, name: string, canRead: boolean,
canWrite: boolean) => void;
FS_unlink(path: string): void;
errorListener?: ErrorListener;
_bindTextureToCanvas: () => boolean;
_changeBinaryGraph: (size: number, dataPtr: number) => void;