pub struct LogitSoftcapStage {
pub cap: f32,
}Expand description
Gemma 2 final logit softcap: cap * tanh(logits / cap).
Fields§
§cap: f32Implementations§
Trait Implementations§
Source§impl Clone for LogitSoftcapStage
impl Clone for LogitSoftcapStage
Source§fn clone(&self) -> LogitSoftcapStage
fn clone(&self) -> LogitSoftcapStage
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 LogitSoftcapStage
impl RefUnwindSafe for LogitSoftcapStage
impl Send for LogitSoftcapStage
impl Sync for LogitSoftcapStage
impl Unpin for LogitSoftcapStage
impl UnsafeUnpin for LogitSoftcapStage
impl UnwindSafe for LogitSoftcapStage
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