pub enum DataTypeError {
NotSupported(TensorProto_DataType),
NotRecognized(i32),
ParametrizedDimensionUnsupported(String),
Undefined,
}
Variants§
NotSupported(TensorProto_DataType)
NotRecognized(i32)
ParametrizedDimensionUnsupported(String)
Undefined
Trait Implementations§
Source§impl Debug for DataTypeError
impl Debug for DataTypeError
Source§impl Display for DataTypeError
impl Display for DataTypeError
Source§impl Error for DataTypeError
impl Error for DataTypeError
1.30.0 · 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<DataTypeError> for CompileError
impl From<DataTypeError> for CompileError
Source§fn from(source: DataTypeError) -> Self
fn from(source: DataTypeError) -> Self
Converts to this type from the input type.
Source§impl From<DataTypeError> for GpuError
impl From<DataTypeError> for GpuError
Source§fn from(source: DataTypeError) -> Self
fn from(source: DataTypeError) -> Self
Converts to this type from the input type.
Source§impl From<DataTypeError> for WonnxError
impl From<DataTypeError> for WonnxError
Source§fn from(source: DataTypeError) -> Self
fn from(source: DataTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataTypeError
impl RefUnwindSafe for DataTypeError
impl Send for DataTypeError
impl Sync for DataTypeError
impl Unpin for DataTypeError
impl UnwindSafe for DataTypeError
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