pub enum CheckpointTensorLayout {
Identity,
Transpose3d([i32; 3]),
}Expand description
Backend-independent layout conversion required by a Mimi checkpoint tensor.
Backends use this metadata to convert framework-native checkpoint layouts
into the layouts expected by Mimi::load_parameters.
Variants§
Identity
The checkpoint and model use the same tensor layout.
Transpose3d([i32; 3])
A rank-three checkpoint tensor must be transposed along these axes.
Trait Implementations§
Source§impl Clone for CheckpointTensorLayout
impl Clone for CheckpointTensorLayout
Source§fn clone(&self) -> CheckpointTensorLayout
fn clone(&self) -> CheckpointTensorLayout
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 moreimpl Copy for CheckpointTensorLayout
Source§impl Debug for CheckpointTensorLayout
impl Debug for CheckpointTensorLayout
impl Eq for CheckpointTensorLayout
Source§impl PartialEq for CheckpointTensorLayout
impl PartialEq for CheckpointTensorLayout
impl StructuralPartialEq for CheckpointTensorLayout
Auto Trait Implementations§
impl Freeze for CheckpointTensorLayout
impl RefUnwindSafe for CheckpointTensorLayout
impl Send for CheckpointTensorLayout
impl Sync for CheckpointTensorLayout
impl Unpin for CheckpointTensorLayout
impl UnsafeUnpin for CheckpointTensorLayout
impl UnwindSafe for CheckpointTensorLayout
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