pub struct ActivationPatch {
pub layer: usize,
pub position: usize,
pub original: f32,
pub patched: f32,
pub effect: PatchEffect,
}Expand description
Activation patch for surgical intervention
Fields§
§layer: usizeTarget layer
position: usizeTarget position (neuron or head)
original: f32Original value
patched: f32Patched value
effect: PatchEffectEffect on output
Trait Implementations§
Source§impl Clone for ActivationPatch
impl Clone for ActivationPatch
Source§fn clone(&self) -> ActivationPatch
fn clone(&self) -> ActivationPatch
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 ActivationPatch
impl RefUnwindSafe for ActivationPatch
impl Send for ActivationPatch
impl Sync for ActivationPatch
impl Unpin for ActivationPatch
impl UnwindSafe for ActivationPatch
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