pub enum InferenceError {
InputDimensionMismatch {
expected: usize,
actual: usize,
},
NoActiveNeurons,
Failed(String),
Backend(String),
InvalidInput(String),
}Expand description
Errors related to inference operations.
Variants§
InputDimensionMismatch
Input dimension mismatch.
NoActiveNeurons
No active neurons predicted.
Failed(String)
Inference failed.
Backend(String)
Backend error.
InvalidInput(String)
Invalid input.
Trait Implementations§
Source§impl Debug for InferenceError
impl Debug for InferenceError
Source§impl Display for InferenceError
impl Display for InferenceError
Source§impl Error for InferenceError
impl Error for InferenceError
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<InferenceError> for SparseInferenceError
impl From<InferenceError> for SparseInferenceError
Source§fn from(source: InferenceError) -> Self
fn from(source: InferenceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceError
impl RefUnwindSafe for InferenceError
impl Send for InferenceError
impl Sync for InferenceError
impl Unpin for InferenceError
impl UnwindSafe for InferenceError
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