pub enum EpError {
NoEpForOp {
op_type: String,
},
KernelFailed(String),
EpPanicked,
EpLoadFailed {
path: PathBuf,
reason: String,
},
OutOfMemory {
requested: usize,
available: usize,
},
AlignmentError,
InvalidTensorView {
reason: String,
},
NotInitialized,
NoEpForContext {
source_key: Option<String>,
},
UnsupportedContext {
ep: String,
},
DuplicateContextSource {
source_key: String,
existing: EpId,
new: EpId,
},
Ir(IrError),
}Expand description
Errors produced by execution providers and kernels (subset of the
runtime top-level Error, docs/ORT2.md §22).
Variants§
NoEpForOp
KernelFailed(String)
EpPanicked
EpLoadFailed
OutOfMemory
AlignmentError
InvalidTensorView
NotInitialized
NoEpForContext
UnsupportedContext
DuplicateContextSource
Ir(IrError)
Trait Implementations§
Source§impl Error for EpError
impl Error for EpError
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()
Auto Trait Implementations§
impl Freeze for EpError
impl RefUnwindSafe for EpError
impl Send for EpError
impl Sync for EpError
impl Unpin for EpError
impl UnsafeUnpin for EpError
impl UnwindSafe for EpError
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