pub enum SessionError {
Show 22 variants
NotInitialized,
InputNotFound {
name: String,
},
UnknownOption {
key: String,
},
InvalidOption {
key: String,
value: String,
expected: String,
},
NoModelSource,
UnsupportedOp {
op_type: 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,
},
DtypeMismatch {
name: String,
expected: String,
got: String,
},
ShapeMismatch {
name: String,
expected: Vec<usize>,
got: Vec<usize>,
},
Internal(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
UnsupportedOp
DynamicShape
SymbolConflict
RankMismatch
UnresolvedShape
ShapeOverflow
OutputShapeCountMismatch
DtypeMismatch
ShapeMismatch
Internal(String)
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<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