pub struct ExpectedTensor {
pub name: String,
pub shape: Vec<usize>,
pub dtype: Dtype,
}Expand description
One tensor the manifest requires, as the OQ-2 inventory recorded it.
Fields§
§name: StringTensor name, exactly as it appears in the checkpoint directory.
shape: Vec<usize>Required shape.
dtype: DtypeRequired storage dtype.
Implementations§
Trait Implementations§
Source§impl Clone for ExpectedTensor
impl Clone for ExpectedTensor
Source§fn clone(&self) -> ExpectedTensor
fn clone(&self) -> ExpectedTensor
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 ExpectedTensor
impl Debug for ExpectedTensor
impl Eq for ExpectedTensor
Source§impl PartialEq for ExpectedTensor
impl PartialEq for ExpectedTensor
impl StructuralPartialEq for ExpectedTensor
Auto Trait Implementations§
impl Freeze for ExpectedTensor
impl RefUnwindSafe for ExpectedTensor
impl Send for ExpectedTensor
impl Sync for ExpectedTensor
impl Unpin for ExpectedTensor
impl UnsafeUnpin for ExpectedTensor
impl UnwindSafe for ExpectedTensor
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