#[repr(u8)]pub enum WeightDtype {
F32 = 0,
F16 = 1,
BF16 = 2,
}Expand description
Weight storage dtype (affects loading and dequantization).
Variants§
Trait Implementations§
Source§impl Clone for WeightDtype
impl Clone for WeightDtype
Source§fn clone(&self) -> WeightDtype
fn clone(&self) -> WeightDtype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WeightDtype
Source§impl Debug for WeightDtype
impl Debug for WeightDtype
Source§impl Default for WeightDtype
impl Default for WeightDtype
Source§fn default() -> WeightDtype
fn default() -> WeightDtype
Returns the “default value” for a type. Read more
impl Eq for WeightDtype
Source§impl PartialEq for WeightDtype
impl PartialEq for WeightDtype
impl StructuralPartialEq for WeightDtype
Auto Trait Implementations§
impl Freeze for WeightDtype
impl RefUnwindSafe for WeightDtype
impl Send for WeightDtype
impl Sync for WeightDtype
impl Unpin for WeightDtype
impl UnsafeUnpin for WeightDtype
impl UnwindSafe for WeightDtype
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more