OnnxLoader

class OnnxLoader<M : Message>(readBytes: suspend () -> ByteArray, decode: (ByteArray) -> M)(source)

Minimal pbandk-backed ONNX loader.

The parser is injected so we can plug the generated ONNX ModelProto decoder once it is available. For now, the API keeps the raw bytes to enable debugging or alternative decoding strategies.

Constructors

Link copied to clipboard
constructor(readBytes: suspend () -> ByteArray, decode: (ByteArray) -> M)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun load(): OnnxLoadedModel<M>