pub struct Gemma4LayerWeights {
pub attn_norm: Vec<f32>,
pub attn: Gemma4AttnWeights,
pub ffn_norm: Vec<f32>,
pub ffn_gate: WeightMatrix,
pub ffn_up: WeightMatrix,
pub ffn_down: WeightMatrix,
pub ffn_post_norm: Vec<f32>,
pub per_layer_inp_gate: Option<WeightMatrix>,
pub per_layer_proj: Option<WeightMatrix>,
pub per_layer_post_norm: Option<Vec<f32>>,
pub out_scale: Option<f32>,
}Fields§
§attn_norm: Vec<f32>§attn: Gemma4AttnWeights§ffn_norm: Vec<f32>§ffn_gate: WeightMatrix§ffn_up: WeightMatrix§ffn_down: WeightMatrix§ffn_post_norm: Vec<f32>§per_layer_inp_gate: Option<WeightMatrix>§per_layer_proj: Option<WeightMatrix>§per_layer_post_norm: Option<Vec<f32>>§out_scale: Option<f32>Auto Trait Implementations§
impl Freeze for Gemma4LayerWeights
impl RefUnwindSafe for Gemma4LayerWeights
impl Send for Gemma4LayerWeights
impl Sync for Gemma4LayerWeights
impl Unpin for Gemma4LayerWeights
impl UnsafeUnpin for Gemma4LayerWeights
impl UnwindSafe for Gemma4LayerWeights
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more