class
OnnxRuntime::OrtEnvironment
- OnnxRuntime::OrtEnvironment
- Reference
- Object
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.crClass Method Summary
-
.instance
Get the singleton instance of OrtEnvironment
Instance Method Summary
-
#api
Get the API
-
#env
Get the environment pointer
-
#release
Release the environment in a thread-safe manner
-
#released? : Bool
Check if the environment has been released