pub enum Finding {
Missing {
name: String,
expected_shape: Vec<usize>,
expected_dtype: Dtype,
},
ShapeMismatch {
name: String,
expected: Vec<usize>,
actual: Vec<usize>,
},
DtypeMismatch {
name: String,
expected: Dtype,
actual: Dtype,
},
Extra {
name: String,
shape: Vec<usize>,
dtype: Dtype,
},
}Expand description
How a checkpoint diverged from the manifest.
Variants§
Missing
The manifest requires a tensor the checkpoint does not contain.
Fields
ShapeMismatch
The tensor exists with the wrong shape.
Fields
DtypeMismatch
The tensor exists with the wrong storage dtype.
Fields
Extra
The checkpoint contains a tensor the manifest does not mention.
Implementations§
Trait Implementations§
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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