class OnnxRuntime::OrtEnvironment

Overview

OrtEnvironment is a singleton class that manages the ONNX Runtime environment. It ensures that only one environment exists per process and provides thread-safe access.

Defined in:

onnxruntime/ort_environment.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.instance #

Get the singleton instance of OrtEnvironment


[View source]

Instance Method Detail

def api #

Get the API


[View source]
def env #

Get the environment pointer


[View source]
def release #

Release the environment in a thread-safe manner


[View source]
def released? : Bool #

Check if the environment has been released


[View source]