pub struct ActivationSnapshot {
pub timestamp: u64,
pub input: String,
pub activations: HashMap<usize, Vec<f32>>,
pub attention: HashMap<(usize, usize), Vec<f32>>,
}Expand description
Snapshot of activations at a point in time
Fields§
§timestamp: u64Timestamp
input: StringInput text
activations: HashMap<usize, Vec<f32>>Layer activations (layer -> values)
attention: HashMap<(usize, usize), Vec<f32>>Attention patterns (layer, head -> pattern)
Trait Implementations§
Source§impl Clone for ActivationSnapshot
impl Clone for ActivationSnapshot
Source§fn clone(&self) -> ActivationSnapshot
fn clone(&self) -> ActivationSnapshot
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 ActivationSnapshot
impl RefUnwindSafe for ActivationSnapshot
impl Send for ActivationSnapshot
impl Sync for ActivationSnapshot
impl Unpin for ActivationSnapshot
impl UnwindSafe for ActivationSnapshot
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