pub struct Embedding<const VOCAB: usize, const DIM: usize>;
Trait Implementations§
source§impl<const V: usize, const M: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for Embedding<V, M>where
Embedding<V, M, E, D>: BuildModule<D, E>,
impl<const V: usize, const M: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for Embedding<V, M>where Embedding<V, M, E, D>: BuildModule<D, E>,
Auto Trait Implementations§
impl<const VOCAB: usize, const DIM: usize> RefUnwindSafe for Embedding<VOCAB, DIM>
impl<const VOCAB: usize, const DIM: usize> Send for Embedding<VOCAB, DIM>
impl<const VOCAB: usize, const DIM: usize> Sync for Embedding<VOCAB, DIM>
impl<const VOCAB: usize, const DIM: usize> Unpin for Embedding<VOCAB, DIM>
impl<const VOCAB: usize, const DIM: usize> UnwindSafe for Embedding<VOCAB, DIM>
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