pub struct Embedding {
pub weight: Vec<Vec<f32>>,
pub vocab_size: usize,
pub embedding_dim: usize,
}Expand description
Embedding layer
Fields§
§weight: Vec<Vec<f32>>§vocab_size: usize§embedding_dim: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Embedding
impl RefUnwindSafe for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnwindSafe for Embedding
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