pub struct WeightMeta {
pub name: String,
pub dtype: WeightDtype,
pub numel: usize,
}Expand description
2026-09-25: Checkpoint name, dtype and element count of one resident weight. The first decode uses them to copy the weight to host FP32.
Fields§
§name: String§dtype: WeightDtype§numel: usizeTrait Implementations§
Source§impl Clone for WeightMeta
impl Clone for WeightMeta
Source§fn clone(&self) -> WeightMeta
fn clone(&self) -> WeightMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeightMeta
impl RefUnwindSafe for WeightMeta
impl Send for WeightMeta
impl Sync for WeightMeta
impl Unpin for WeightMeta
impl UnwindSafe for WeightMeta
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