createSession
abstract fun createSession(model: ByteArray, options: SessionOptions = SessionOptions()): InferenceSession
Parameters
model
the raw bytes of the model file (.onnx for the ORT backend)
Throws
if the model cannot be loaded
the raw bytes of the model file (.onnx for the ORT backend)
if the model cannot be loaded