Struct syntaxdot_transformers::layers::Embedding
source · [−]pub struct Embedding(pub Tensor);
Expand description
Embedding lookup layer.
Tuple Fields
0: Tensor
Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more