fromSource

fun <M : Message> fromSource(sourceProvider: suspend () -> Source, decode: (ByteArray) -> M): OnnxLoader<M>(source)

Convenience factory for sources provided by kotlinx-io.