pub struct MemoryComparison {
pub seq_len: usize,
pub mha_cache_floats: usize,
pub mla_cache_floats: usize,
pub mha_cache_bytes: usize,
pub mla_cache_bytes: usize,
pub reduction_ratio: f32,
}Expand description
Report comparing MLA vs MHA cache memory usage.
Fields§
§seq_len: usize§mha_cache_floats: usize§mla_cache_floats: usize§mha_cache_bytes: usize§mla_cache_bytes: usize§reduction_ratio: f32Trait Implementations§
Source§impl Clone for MemoryComparison
impl Clone for MemoryComparison
Source§fn clone(&self) -> MemoryComparison
fn clone(&self) -> MemoryComparison
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 moreAuto Trait Implementations§
impl Freeze for MemoryComparison
impl RefUnwindSafe for MemoryComparison
impl Send for MemoryComparison
impl Sync for MemoryComparison
impl Unpin for MemoryComparison
impl UnsafeUnpin for MemoryComparison
impl UnwindSafe for MemoryComparison
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