pub struct EmbedScaleStage {
pub hidden_size: usize,
}Expand description
Multiply token embeddings by sqrt(hidden_size) (Gemma / Gemma 2).
Fields§
Implementations§
Trait Implementations§
Source§impl Clone for EmbedScaleStage
impl Clone for EmbedScaleStage
Source§fn clone(&self) -> EmbedScaleStage
fn clone(&self) -> EmbedScaleStage
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 EmbedScaleStage
impl RefUnwindSafe for EmbedScaleStage
impl Send for EmbedScaleStage
impl Sync for EmbedScaleStage
impl Unpin for EmbedScaleStage
impl UnsafeUnpin for EmbedScaleStage
impl UnwindSafe for EmbedScaleStage
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