parseMetadataFromBlob

suspend fun OnnxModelParser.parseMetadataFromBlob(blob: Blob, preloadSize: Int = JsBlobRandomAccessSource.DEFAULT_PRELOAD_SIZE): ModelMetadata(source)

Parse ONNX model metadata from a browser Blob or File.

This uses streaming mode with JsBlobRandomAccessSource for memory-efficient parsing of large ONNX files in the browser.

Return

ModelMetadata indicating parsing success

Parameters

blob

The Blob or File to parse

preloadSize

How much data to preload (default 50MB)