pub enum LoaderError {
Show 25 variants
Io {
path: PathBuf,
source: Error,
},
ProtobufParse(String),
UnsupportedOpset {
domain: String,
version: u64,
},
MissingOpsetImport {
op_type: String,
node: String,
domain: String,
},
UnsupportedControlFlow {
op_type: String,
node: String,
domain: String,
attr: String,
},
DanglingTensorRef {
op_type: String,
node: String,
domain: String,
tensor: String,
},
InitializerHasProducer {
tensor: String,
node: String,
},
DuplicateValueProducer {
tensor: String,
first: String,
second: String,
},
RefAttributeOutsideFunction {
op_type: String,
node: String,
domain: String,
attr: String,
ref_attr_name: String,
},
InvalidIrVersion {
ir_version: i64,
},
MissingModelOpsetImport {
ir_version: i64,
},
SubgraphInputShadowsInitializer {
tensor: String,
},
GraphOutputMissingProducer {
tensor: String,
},
ExternalDataNotFound {
path: PathBuf,
},
ExternalDataPath {
path: String,
reason: &'static str,
},
Mmap(String),
EpContext(String),
EpContextPath {
path: String,
reason: &'static str,
},
GraphBuild(String),
RecursiveFunction {
function: String,
chain: String,
},
FunctionArityMismatch {
function: String,
node: String,
kind: &'static str,
formal: usize,
actual: usize,
},
MissingRequiredFunctionAttribute {
function: String,
node: String,
attribute: String,
},
UnsupportedDataType {
raw: i32,
context: String,
},
ShapeInference(ShapeInferError),
Ir(IrError),
}Expand description
Errors produced while loading an ONNX model.
Variants§
Io
ProtobufParse(String)
UnsupportedOpset
MissingOpsetImport
UnsupportedControlFlow
DanglingTensorRef
InitializerHasProducer
DuplicateValueProducer
RefAttributeOutsideFunction
InvalidIrVersion
MissingModelOpsetImport
SubgraphInputShadowsInitializer
GraphOutputMissingProducer
ExternalDataNotFound
ExternalDataPath
Mmap(String)
EpContext(String)
EpContextPath
GraphBuild(String)
RecursiveFunction
FunctionArityMismatch
MissingRequiredFunctionAttribute
UnsupportedDataType
ShapeInference(ShapeInferError)
Ir(IrError)
Trait Implementations§
Source§impl Debug for LoaderError
impl Debug for LoaderError
Source§impl Display for LoaderError
impl Display for LoaderError
Source§impl Error for LoaderError
impl Error for LoaderError
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<IrError> for LoaderError
impl From<IrError> for LoaderError
Source§impl From<ShapeInferError> for LoaderError
impl From<ShapeInferError> for LoaderError
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 LoaderError
impl !UnwindSafe for LoaderError
impl Freeze for LoaderError
impl Send for LoaderError
impl Sync for LoaderError
impl Unpin for LoaderError
impl UnsafeUnpin for LoaderError
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