pub enum FrozenNf4Error<E>where
E: Debug,{
Native(E),
TrainableBase,
InputGradientNotDifferentiable,
}Expand description
Native failure or an unsupported derivative of the explicitly frozen NF4 base.
Variants§
Native(E)
Original native backend error.
TrainableBase
Scales, codebook or bias must remain frozen, not learned QAT operands.
InputGradientNotDifferentiable
Original NF4 API provides first-order input gradients, not their derivatives.
Trait Implementations§
Source§impl<E> Debug for FrozenNf4Error<E>where
E: Debug,
impl<E> Debug for FrozenNf4Error<E>where
E: Debug,
Source§impl<E> Display for FrozenNf4Error<E>where
E: Debug,
impl<E> Display for FrozenNf4Error<E>where
E: Debug,
Source§impl<E> Error for FrozenNf4Error<E>where
E: Debug,
impl<E> Error for FrozenNf4Error<E>where
E: Debug,
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()
Auto Trait Implementations§
impl<E> Freeze for FrozenNf4Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for FrozenNf4Error<E>where
E: RefUnwindSafe,
impl<E> Send for FrozenNf4Error<E>where
E: Send,
impl<E> Sync for FrozenNf4Error<E>where
E: Sync,
impl<E> Unpin for FrozenNf4Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for FrozenNf4Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for FrozenNf4Error<E>where
E: UnwindSafe,
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