pub enum SparseInferenceError {
Predictor(PredictorError),
Model(ModelError),
Inference(InferenceError),
Cache(String),
Quantization(String),
Io(Error),
Serialization(String),
Gguf(GgufError),
}Expand description
Main error type for sparse inference operations.
Variants§
Predictor(PredictorError)
Error in predictor operations.
Model(ModelError)
Error in model operations.
Inference(InferenceError)
Error in inference operations.
Cache(String)
Error in cache operations.
Quantization(String)
Error in quantization operations.
Io(Error)
IO error.
Serialization(String)
Serialization error.
Gguf(GgufError)
GGUF error.
Trait Implementations§
Source§impl Debug for SparseInferenceError
impl Debug for SparseInferenceError
Source§impl Display for SparseInferenceError
impl Display for SparseInferenceError
Source§impl Error for SparseInferenceError
impl Error for SparseInferenceError
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 SparseInferenceError
impl From<Error> for SparseInferenceError
Source§impl From<Error> for SparseInferenceError
impl From<Error> for SparseInferenceError
Source§impl From<GgufError> for SparseInferenceError
impl From<GgufError> for SparseInferenceError
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.
Source§impl From<ModelError> for SparseInferenceError
impl From<ModelError> for SparseInferenceError
Source§fn from(source: ModelError) -> Self
fn from(source: ModelError) -> Self
Converts to this type from the input type.
Source§impl From<PredictorError> for SparseInferenceError
impl From<PredictorError> for SparseInferenceError
Source§fn from(source: PredictorError) -> Self
fn from(source: PredictorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparseInferenceError
impl !RefUnwindSafe for SparseInferenceError
impl Send for SparseInferenceError
impl Sync for SparseInferenceError
impl Unpin for SparseInferenceError
impl !UnwindSafe for SparseInferenceError
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