[][src]Enum onnxruntime::error::OrtError

pub enum OrtError {
    StringConversion(OrtApiError),
    Environment(OrtApiError),
    SessionOptions(OrtApiError),
    Session(OrtApiError),
    Allocator(OrtApiError),
    InOutCount(OrtApiError),
    InputName(OrtApiError),
    GetTypeInfo(OrtApiError),
    CastTypeInfoToTensorInfo(OrtApiError),
    TensorElementType(OrtApiError),
    GetDimensionsCount(OrtApiError),
    GetDimensions(OrtApiError),
    CreateCpuMemoryInfo(OrtApiError),
    CreateTensorWithData(OrtApiError),
    IsTensor(OrtApiError),
    Run(OrtApiError),
    GetTensorMutableData(OrtApiError),
    DownloadError(OrtDownloadError),
    NonMatchingDimensions {
        input: Vec<usize>,
        model: Vec<usize>,
    },
    FileDoesNotExists {
        filename: PathBuf,
    },
    NonUtf8Path {
        path: PathBuf,
    },
    CStringNulError(NulError),
}

Error type centralizing all possible errors

Variants

StringConversion(OrtApiError)

The C API can message to the caller using a C char * which needs to be converted to Rust's String. This operation can fail.

Environment(OrtApiError)

An error occurred when creating an ONNX environment

SessionOptions(OrtApiError)

Error occurred when creating an ONNX session options

Session(OrtApiError)

Error occurred when creating an ONNX session

Allocator(OrtApiError)

Error occurred when creating an ONNX allocator

InOutCount(OrtApiError)

Error occurred when counting ONNX input or output count

InputName(OrtApiError)

Error occurred when getting ONNX input name

GetTypeInfo(OrtApiError)

Error occurred when getting ONNX type information

CastTypeInfoToTensorInfo(OrtApiError)

Error occurred when casting ONNX type information to tensor information

TensorElementType(OrtApiError)

Error occurred when getting tensor elements type

GetDimensionsCount(OrtApiError)

Error occurred when getting ONNX dimensions count

GetDimensions(OrtApiError)

Error occurred when getting ONNX dimensions

CreateCpuMemoryInfo(OrtApiError)

Error occurred when creating CPU memory information

CreateTensorWithData(OrtApiError)

Error occurred when creating ONNX tensor with specific data

IsTensor(OrtApiError)

Error occurred when checking if ONNX tensor was properly initialized

Error occurred when ONNX inference operation was called

GetTensorMutableData(OrtApiError)

Error occurred when extracting data from an ONNX tensor into an C array to be used as an ndarray::ArrayView

DownloadError(OrtDownloadError)

Error occurred when downloading a pre-trained ONNX model from the ONNX Model Zoo

NonMatchingDimensions

Dimensions of input data and ONNX model loaded from file do not match

Fields of NonMatchingDimensions

input: Vec<usize>

Input data dimensions

model: Vec<usize>

ONNX model dimensions

FileDoesNotExists

File does not exists

Fields of FileDoesNotExists

filename: PathBuf

Path which does not exists

NonUtf8Path

Path is an invalid UTF-8

Fields of NonUtf8Path

path: PathBuf

Path with invalid UTF-8

CStringNulError(NulError)

Attempt to build a Rust CString from a null pointer

Trait Implementations

impl Debug for OrtError[src]

impl Display for OrtError[src]

impl Error for OrtError[src]

impl From<NulError> for OrtError[src]

impl From<OrtDownloadError> for OrtError[src]

Auto Trait Implementations

impl !RefUnwindSafe for OrtError

impl Send for OrtError

impl Sync for OrtError

impl Unpin for OrtError

impl !UnwindSafe for OrtError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.