Package io.higson.runtime.provider.ai
Class OnnxModelSession
java.lang.Object
io.higson.runtime.provider.ai.OnnxModelSession
- All Implemented Interfaces:
AiModelSession<ai.onnxruntime.OrtSession>,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OnnxModelSession
public OnnxModelSession()
-
-
Method Details
-
getSession
public ai.onnxruntime.OrtSession getSession()- Specified by:
getSessionin interfaceAiModelSession<ai.onnxruntime.OrtSession>
-
close
public void close() throws ai.onnxruntime.OrtException- Specified by:
closein interfaceAutoCloseable- Throws:
ai.onnxruntime.OrtException
-