pub enum PytorchStoreError {
Reader(PytorchError),
Io(Error),
TensorNotFound(String),
ValidationFailed(String),
Other(String),
}Expand description
Errors that can occur during PyTorch operations.
Variants§
Reader(PytorchError)
Reader error.
Io(Error)
I/O error.
TensorNotFound(String)
Tensor not found.
ValidationFailed(String)
Validation failed.
Other(String)
Other error.
Trait Implementations§
Source§impl Debug for PytorchStoreError
impl Debug for PytorchStoreError
Source§impl Display for PytorchStoreError
impl Display for PytorchStoreError
Source§impl Error for PytorchStoreError
impl Error for PytorchStoreError
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<Error> for PytorchStoreError
impl From<Error> for PytorchStoreError
Source§impl From<PytorchError> for PytorchStoreError
impl From<PytorchError> for PytorchStoreError
Source§fn from(e: ReaderError) -> Self
fn from(e: ReaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PytorchStoreError
impl !RefUnwindSafe for PytorchStoreError
impl Send for PytorchStoreError
impl Sync for PytorchStoreError
impl Unpin for PytorchStoreError
impl !UnwindSafe for PytorchStoreError
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