Struct onnxruntime::session::Session[][src]

pub struct Session<'a> {
    pub inputs: Vec<Input>,
    pub outputs: Vec<Output>,
    // some fields omitted
}
Expand description

Type storing the session information, built from an Environment

Fields

inputs: Vec<Input>

Information about the ONNX’s inputs as stored in loaded file

outputs: Vec<Output>

Information about the ONNX’s outputs as stored in loaded file

Implementations

Run the input data through the ONNX graph, performing inference.

Note that ONNX models can have multiple inputs; a Vec<_> is thus used for the input data here.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.