pub struct BertEmbeddings {
pub word_embeddings: Embedding,
pub position_embeddings: Embedding,
pub token_type_embeddings: Embedding,
pub layer_norm: LayerNorm,
}Fields§
§word_embeddings: Embedding§position_embeddings: Embedding§token_type_embeddings: Embedding§layer_norm: LayerNormImplementations§
Auto Trait Implementations§
impl Freeze for BertEmbeddings
impl RefUnwindSafe for BertEmbeddings
impl Send for BertEmbeddings
impl Sync for BertEmbeddings
impl Unpin for BertEmbeddings
impl UnwindSafe for BertEmbeddings
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