pub struct ModelStats {
pub total_params: usize,
pub trainable_params: usize,
pub num_layers: usize,
pub d_model: usize,
pub memory_estimate: usize,
}Expand description
Statistics about a transformer model
Fields§
§total_params: usizeTotal number of parameters
trainable_params: usizeNumber of trainable parameters
num_layers: usizeNumber of layers
d_model: usizeModel dimension
memory_estimate: usizeMemory footprint estimate (bytes)
Implementations§
Trait Implementations§
Source§impl Clone for ModelStats
impl Clone for ModelStats
Source§fn clone(&self) -> ModelStats
fn clone(&self) -> ModelStats
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 ModelStats
impl Debug for ModelStats
Source§impl PartialEq for ModelStats
impl PartialEq for ModelStats
impl StructuralPartialEq for ModelStats
Auto Trait Implementations§
impl Freeze for ModelStats
impl RefUnwindSafe for ModelStats
impl Send for ModelStats
impl Sync for ModelStats
impl Unpin for ModelStats
impl UnwindSafe for ModelStats
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