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