pub enum CheckpointMatch {
NotChecked,
Found {
name: String,
shape: Vec<usize>,
dtype: String,
},
FoundMany {
count: usize,
sample: String,
},
Missing,
}Expand description
Whether a parameter was found in a checkpoint. Evidence about the checkpoint, not ground truth about the model: a tensor may be absent because the checkpoint is stale, and present because something else wrote it.
Variants§
NotChecked
Found
Matched exactly one tensor.
FoundMany
A template matched several tensors; this is the expected case for layer families.
Missing
Trait Implementations§
Source§impl Clone for CheckpointMatch
impl Clone for CheckpointMatch
Source§fn clone(&self) -> CheckpointMatch
fn clone(&self) -> CheckpointMatch
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 moreSource§impl Debug for CheckpointMatch
impl Debug for CheckpointMatch
impl Eq for CheckpointMatch
Source§impl PartialEq for CheckpointMatch
impl PartialEq for CheckpointMatch
Source§impl Serialize for CheckpointMatch
impl Serialize for CheckpointMatch
impl StructuralPartialEq for CheckpointMatch
Auto Trait Implementations§
impl Freeze for CheckpointMatch
impl RefUnwindSafe for CheckpointMatch
impl Send for CheckpointMatch
impl Sync for CheckpointMatch
impl Unpin for CheckpointMatch
impl UnsafeUnpin for CheckpointMatch
impl UnwindSafe for CheckpointMatch
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