pub enum TensorError {
ShapeError(ShapeError),
AnyError(Error),
BoxError(Box<dyn Error + Send + Sync>),
DeserializeError(Error),
FmtError(Error),
JsonError(Error),
IoError(Error),
UniformError(Error),
Unknown(String),
}Expand description
The [Error] type enumerates various errors that can occur within the framework.
Variants§
ShapeError(ShapeError)
AnyError(Error)
BoxError(Box<dyn Error + Send + Sync>)
DeserializeError(Error)
FmtError(Error)
JsonError(Error)
IoError(Error)
UniformError(Error)
Unknown(String)
Implementations§
Trait Implementations§
Source§impl Debug for TensorError
impl Debug for TensorError
Source§impl Display for TensorError
impl Display for TensorError
Source§impl Error for TensorError
impl Error for TensorError
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<&str> for TensorError
impl From<&str> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<Error> for TensorError
impl From<Error> for TensorError
Source§impl From<ShapeError> for TensorError
impl From<ShapeError> for TensorError
Source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TensorError
impl !RefUnwindSafe for TensorError
impl Send for TensorError
impl Sync for TensorError
impl Unpin for TensorError
impl !UnwindSafe for TensorError
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