pub struct BertLayer {
pub attention: MultiHeadAttention,
pub intermediate: Linear,
pub output: Linear,
pub layer_norm1: LayerNorm,
pub layer_norm2: LayerNorm,
}Fields§
§attention: MultiHeadAttention§intermediate: Linear§output: Linear§layer_norm1: LayerNorm§layer_norm2: LayerNormAuto Trait Implementations§
impl Freeze for BertLayer
impl RefUnwindSafe for BertLayer
impl Send for BertLayer
impl Sync for BertLayer
impl Unpin for BertLayer
impl UnwindSafe for BertLayer
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