#[non_exhaustive]pub enum DimOrder {
OutermostFirst,
InnermostFirst,
}Expand description
Order of TensorShape::dims in the format’s native directory.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OutermostFirst
Row-major, outermost dimension first (Safetensors, NumPy, PyTorch).
InnermostFirst
Innermost (fastest-varying) dimension first (GGUF / GGML ne[]).
Trait Implementations§
impl Copy for DimOrder
impl Eq for DimOrder
impl StructuralPartialEq for DimOrder
Auto Trait Implementations§
impl Forget for DimOrder
impl Freeze for DimOrder
impl Move for DimOrder
impl RefUnwindSafe for DimOrder
impl Send for DimOrder
impl Sync for DimOrder
impl Unpin for DimOrder
impl UnsafeUnpin for DimOrder
impl UnwindSafe for DimOrder
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