pub enum MatrixBatchLayout {
Contiguous,
MildlyPermuted {
transposed: bool,
batch_swap: bool,
},
HighlyPermuted,
}
Expand description
Layout for matrix batch tensors, i.e. tensors whose interpretation is a bunch of batched matrices of 2 dimensions
Variants§
Contiguous
Memory is wholly contiguous, with row major layout
MildlyPermuted
Permutations happened, but may not impact some kernels
Fields
HighlyPermuted
Permutations happened between batch dimensions and last two dims
Trait Implementations§
Source§impl Clone for MatrixBatchLayout
impl Clone for MatrixBatchLayout
Source§fn clone(&self) -> MatrixBatchLayout
fn clone(&self) -> MatrixBatchLayout
Returns a duplicate of the value. Read more
1.0.0 · 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 MatrixBatchLayout
impl Debug for MatrixBatchLayout
Source§impl<'de> Deserialize<'de> for MatrixBatchLayout
impl<'de> Deserialize<'de> for MatrixBatchLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MatrixBatchLayout
impl Hash for MatrixBatchLayout
Source§impl PartialEq for MatrixBatchLayout
impl PartialEq for MatrixBatchLayout
Source§impl Serialize for MatrixBatchLayout
impl Serialize for MatrixBatchLayout
impl Eq for MatrixBatchLayout
impl StructuralPartialEq for MatrixBatchLayout
Auto Trait Implementations§
impl Freeze for MatrixBatchLayout
impl RefUnwindSafe for MatrixBatchLayout
impl Send for MatrixBatchLayout
impl Sync for MatrixBatchLayout
impl Unpin for MatrixBatchLayout
impl UnwindSafe for MatrixBatchLayout
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