[][src]Module onnxruntime::environment

Module containing environment types

An Environment is the main entry point of the ONNX Runtime.

Only one ONNX environment can be created per process. The onnxruntime crate uses a singleton (through lazy_static!()) to enforce this.

Once an environment is created, a Session can be obtained from it.

NOTE: While the Environment constructor takes a name parameter to name the environment, only the first name will be considered if many environments are created.

Example

let environment = Environment::builder()
    .with_name("test")
    .with_log_level(LoggingLevel::Verbose)
    .build()?;

Structs

EnvBuilder

Struct used to build an environment Environment

Environment

Wrapper around the ONNX environment singleton