pub struct BlockLayout { /* private fields */ }Expand description
Which block each element of a tensor falls in, for a block scheme. A block is a rectangle, so its members are a run of the flat storage only when it spans the trailing dimension; anything walking values against block scales asks here rather than chunking.
Implementations§
Source§impl BlockLayout
impl BlockLayout
Sourcepub fn num_blocks(&self) -> usize
pub fn num_blocks(&self) -> usize
How many blocks the tensor holds, which is how many block scales it has.
Trait Implementations§
Source§impl Clone for BlockLayout
impl Clone for BlockLayout
Source§fn clone(&self) -> BlockLayout
fn clone(&self) -> BlockLayout
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 moreAuto Trait Implementations§
impl Freeze for BlockLayout
impl RefUnwindSafe for BlockLayout
impl Send for BlockLayout
impl Sync for BlockLayout
impl Unpin for BlockLayout
impl UnsafeUnpin for BlockLayout
impl UnwindSafe for BlockLayout
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