pub struct Embedding {
pub ws: Tensor,
/* private fields */
}
Expand description
An embedding layer.
An embedding layer acts as a simple lookup table that stores embeddings. This is commonly used to store word embeddings.
Fields§
§ws: Tensor
Trait Implementations§
Auto Trait Implementations§
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