pub enum SessionError {
Show 27 variants
NotInitialized,
InputNotFound {
name: String,
},
UnknownOption {
key: String,
},
InvalidOption {
key: String,
value: String,
expected: String,
},
NoModelSource,
ExecutionProviderUnavailable(String),
HeterogeneousPlacementRequired {
unsupported_nodes: String,
},
UnsupportedOp {
op_type: String,
domain: String,
node: String,
opset: OpsetVersion,
reason: String,
execution_providers: String,
},
DynamicShape {
value: String,
},
SymbolConflict {
symbol: String,
first: usize,
second: usize,
},
RankMismatch {
name: String,
expected: usize,
got: usize,
},
UnresolvedShape {
value: String,
op: String,
},
ShapeOverflow {
value: String,
dims: Vec<usize>,
},
OutputShapeCountMismatch {
op: String,
expected: usize,
got: usize,
},
RuntimeBroadcastIncompatible {
node: String,
domain: String,
op_type: String,
input_shapes: Vec<Vec<usize>>,
},
DtypeMismatch {
name: String,
expected: String,
got: String,
},
ShapeMismatch {
name: String,
expected: Vec<usize>,
got: Vec<usize>,
},
Internal(String),
SequenceOp {
op: String,
reason: String,
},
ControlFlow {
op: String,
reason: String,
},
DanglingEpContext {
source_key: Option<String>,
partition_name: Option<String>,
},
Load(LoaderError),
Ep(EpError),
Ir(IrError),
Graph(GraphError),
Optimize(OptimizerError),
ShapeInfer(ShapeInferError),
}Expand description
Errors produced by the session layer.
Variants§
NotInitialized
InputNotFound
UnknownOption
InvalidOption
NoModelSource
HeterogeneousPlacementRequired
UnsupportedOp
Fields
§
opset: OpsetVersionDynamicShape
SymbolConflict
RankMismatch
UnresolvedShape
ShapeOverflow
OutputShapeCountMismatch
RuntimeBroadcastIncompatible
DtypeMismatch
ShapeMismatch
Internal(String)
SequenceOp
ControlFlow
DanglingEpContext
Load(LoaderError)
Ep(EpError)
Ir(IrError)
Graph(GraphError)
Optimize(OptimizerError)
ShapeInfer(ShapeInferError)
Trait Implementations§
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EpError> for SessionError
impl From<EpError> for SessionError
Source§impl From<GraphError> for SessionError
impl From<GraphError> for SessionError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<IrError> for SessionError
impl From<IrError> for SessionError
Source§impl From<LoaderError> for SessionError
impl From<LoaderError> for SessionError
Source§fn from(source: LoaderError) -> Self
fn from(source: LoaderError) -> Self
Converts to this type from the input type.
Source§impl From<OptimizerError> for SessionError
impl From<OptimizerError> for SessionError
Source§fn from(source: OptimizerError) -> Self
fn from(source: OptimizerError) -> Self
Converts to this type from the input type.
Source§impl From<SequenceError> for SessionError
impl From<SequenceError> for SessionError
Source§fn from(error: SequenceError) -> Self
fn from(error: SequenceError) -> Self
Converts to this type from the input type.
Source§impl From<ShapeInferError> for SessionError
impl From<ShapeInferError> for SessionError
Source§fn from(source: ShapeInferError) -> Self
fn from(source: ShapeInferError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionError
impl !UnwindSafe for SessionError
impl Freeze for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more