Companion

object Companion

Functions

load
Link copied to clipboard
common
fun load(modelBytes: ByteArray, vararg executionProviders: ExecutionProvider = arrayOf(CPU(true))): OnnxInferenceModel

Loads model from a byte array representing an ONNX model.

fun load(pathToModel: String, vararg executionProviders: ExecutionProvider = arrayOf(CPU(true))): OnnxInferenceModel

Loads model from serialized ONNX file.