OnnxInferenceModel

fun OnnxInferenceModel(modelPath: String)

Constructs an ONNX inference model from the given model file.

fun OnnxInferenceModel(modelBytes: ByteArray)

Constructs an ONNX inference model from the byte array representing an ONNX model.

fun OnnxInferenceModel(loadBytes: () -> ByteArray)

Constructs an ONNX inference model from the function which returns a byte array representing an ONNX model.