pub enum Dtype {
Inherit,
Bf16,
Fp8,
Nvfp4,
}Expand description
Target precision for a tensor. Inherit means “let the existing
per-checkpoint logic decide” (preserves pre-C.3 behaviour); the
other variants are hard requests.
Variants§
Inherit
Honour the existing checkpoint-format detection and CLI flag. Equivalent to “no override” — the loader falls through.
Bf16
Fp8
Nvfp4
Implementations§
Trait Implementations§
impl Copy for Dtype
impl Eq for Dtype
impl StructuralPartialEq for Dtype
Auto Trait Implementations§
impl Freeze for Dtype
impl RefUnwindSafe for Dtype
impl Send for Dtype
impl Sync for Dtype
impl Unpin for Dtype
impl UnwindSafe for Dtype
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.