pub struct DenseLayout { /* private fields */ }Expand description
Interpretation half of the dense tensor split.
Holds the logical shape and the memory order the paired
DenseStorage is laid out in. Operations
consuming a DenseTensorData consult
order() to decide whether to repack at their boundary.
Implementations§
Source§impl DenseLayout
impl DenseLayout
Sourcepub fn new(shape: Vec<usize>, order: MemoryOrder) -> Self
pub fn new(shape: Vec<usize>, order: MemoryOrder) -> Self
Construct a DenseLayout from shape and memory order.
Sourcepub fn order(&self) -> MemoryOrder
pub fn order(&self) -> MemoryOrder
Memory order the paired storage is laid out in.
Trait Implementations§
Source§impl Clone for DenseLayout
impl Clone for DenseLayout
Source§fn clone(&self) -> DenseLayout
fn clone(&self) -> DenseLayout
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 DenseLayout
impl Debug for DenseLayout
impl<T> StorageFor<DenseLayout> for DenseStorage<T>
Source§impl TensorLayout for DenseLayout
impl TensorLayout for DenseLayout
Auto Trait Implementations§
impl Freeze for DenseLayout
impl RefUnwindSafe for DenseLayout
impl Send for DenseLayout
impl Sync for DenseLayout
impl Unpin for DenseLayout
impl UnsafeUnpin for DenseLayout
impl UnwindSafe for DenseLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more