pub struct DecoderLayer {
pub self_attn: AttnWeights,
pub self_attn_gate: f32,
pub self_attn_norm: Vec<f32>,
pub cross_attn: AttnWeights,
pub cross_attn_gate: f32,
pub cross_attn_norm: Vec<f32>,
pub ffn: Option<FfnWeights>,
pub ffn_gate: f32,
pub ffn_norm: Option<Vec<f32>>,
pub ffn_activation: Option<FfnActivation>,
}Fields§
§self_attn: AttnWeights§self_attn_gate: f32§self_attn_norm: Vec<f32>§cross_attn: AttnWeights§cross_attn_gate: f32§cross_attn_norm: Vec<f32>§ffn: Option<FfnWeights>§ffn_gate: f32§ffn_norm: Option<Vec<f32>>§ffn_activation: Option<FfnActivation>Auto Trait Implementations§
impl Freeze for DecoderLayer
impl RefUnwindSafe for DecoderLayer
impl Send for DecoderLayer
impl Sync for DecoderLayer
impl Unpin for DecoderLayer
impl UnsafeUnpin for DecoderLayer
impl UnwindSafe for DecoderLayer
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