pub struct AlignedBlocks { /* private fields */ }Expand description
A cache-line aligned buffer of BlockQ1_0G128 values.
Same alignment guarantees as AlignedBuffer but for quantized weight blocks.
Implementations§
Source§impl AlignedBlocks
impl AlignedBlocks
Sourcepub fn as_ptr(&self) -> *const BlockQ1_0G128
pub fn as_ptr(&self) -> *const BlockQ1_0G128
Returns the raw pointer to the start of the buffer.
Sourcepub fn as_slice(&self) -> &[BlockQ1_0G128]
pub fn as_slice(&self) -> &[BlockQ1_0G128]
View the buffer as an immutable slice.
Sourcepub fn as_mut_slice(&mut self) -> &mut [BlockQ1_0G128]
pub fn as_mut_slice(&mut self) -> &mut [BlockQ1_0G128]
View the buffer as a mutable slice.
Trait Implementations§
Source§impl Debug for AlignedBlocks
impl Debug for AlignedBlocks
Source§impl Drop for AlignedBlocks
impl Drop for AlignedBlocks
impl Send for AlignedBlocks
impl Sync for AlignedBlocks
Auto Trait Implementations§
impl Freeze for AlignedBlocks
impl RefUnwindSafe for AlignedBlocks
impl Unpin for AlignedBlocks
impl UnsafeUnpin for AlignedBlocks
impl UnwindSafe for AlignedBlocks
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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