Class OnnxModelSession

java.lang.Object
io.higson.runtime.provider.ai.OnnxModelSession
All Implemented Interfaces:
AiModelSession<ai.onnxruntime.OrtSession>, AutoCloseable

public class OnnxModelSession extends Object implements AiModelSession<ai.onnxruntime.OrtSession>
  • Constructor Details

    • OnnxModelSession

      public OnnxModelSession()
  • Method Details

    • getSession

      public ai.onnxruntime.OrtSession getSession()
      Specified by:
      getSession in interface AiModelSession<ai.onnxruntime.OrtSession>
    • close

      public void close() throws ai.onnxruntime.OrtException
      Specified by:
      close in interface AutoCloseable
      Throws:
      ai.onnxruntime.OrtException