Struct onnxruntime::session::Input[][src]

pub struct Input {
    pub name: String,
    pub input_type: TensorElementDataType,
    pub dimensions: Vec<Option<u32>>,
}
Expand description

Information about an ONNX’s input as stored in loaded file

Fields

name: String

Name of the input layer

input_type: TensorElementDataType

Type of the input layer’s elements

dimensions: Vec<Option<u32>>

Shape of the input layer

C API uses a i64 for the dimensions. We use an unsigned of the same range of the positive values.

Implementations

Return an iterator over the shape elements of the input layer

Note: The member Input::dimensions stores u32 (since ONNX uses i64 but which cannot be negative) so the iterator converts to usize.

Trait Implementations

Formats the value using the given formatter. 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.