pub enum QuantPreviewError {
Init,
NotQuantizable(String),
Nul(NulError),
MockModel,
}Expand description
Failure building or using a QuantPreview.
Variants§
Init
llama.cpp could not build a quantization state for this model.
NotQuantizable(String)
A tensor that would not be quantized was passed to
QuantPreview::compute_types.
Nul(NulError)
The mock-model descriptor contained an interior NUL byte.
MockModel
llama.cpp could not build a model from the descriptor.
Trait Implementations§
Source§impl Debug for QuantPreviewError
impl Debug for QuantPreviewError
Source§impl Display for QuantPreviewError
impl Display for QuantPreviewError
impl Eq for QuantPreviewError
Source§impl Error for QuantPreviewError
impl Error for QuantPreviewError
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<NulError> for QuantPreviewError
impl From<NulError> for QuantPreviewError
Source§impl PartialEq for QuantPreviewError
impl PartialEq for QuantPreviewError
impl StructuralPartialEq for QuantPreviewError
Auto Trait Implementations§
impl Freeze for QuantPreviewError
impl RefUnwindSafe for QuantPreviewError
impl Send for QuantPreviewError
impl Sync for QuantPreviewError
impl Unpin for QuantPreviewError
impl UnsafeUnpin for QuantPreviewError
impl UnwindSafe for QuantPreviewError
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