[−][src]Enum finalfusion::prelude::VocabWrap
Vocabulary types wrapper.
This crate makes it possible to create fine-grained embedding
types, such as Embeddings<SimpleVocab, NdArray>
or
Embeddings<SubwordVocab, QuantizedArray>
. However, in some cases
it is more pleasant to have a single type that covers all
vocabulary and storage types. VocabWrap
and StorageWrap
wrap
all the vocabularies and storage types known to this crate such
that the type Embeddings<VocabWrap, StorageWrap>
covers all
variations.
Variants
SimpleVocab(SimpleVocab)
ExplicitSubwordVocab(ExplicitSubwordVocab)
FastTextSubwordVocab(FastTextSubwordVocab)
BucketSubwordVocab(BucketSubwordVocab)
Trait Implementations
impl Clone for VocabWrap
[src]
impl Debug for VocabWrap
[src]
impl Eq for VocabWrap
[src]
impl From<SimpleVocab> for VocabWrap
[src]
fn from(v: SimpleVocab) -> Self
[src]
impl From<SubwordVocab<ExplicitIndexer>> for VocabWrap
[src]
fn from(v: ExplicitSubwordVocab) -> Self
[src]
impl From<SubwordVocab<FastTextIndexer>> for VocabWrap
[src]
fn from(v: FastTextSubwordVocab) -> Self
[src]
impl From<SubwordVocab<HashIndexer<FnvHasher>>> for VocabWrap
[src]
fn from(v: BucketSubwordVocab) -> Self
[src]
impl PartialEq<VocabWrap> for VocabWrap
[src]
impl StructuralEq for VocabWrap
[src]
impl StructuralPartialEq for VocabWrap
[src]
impl Vocab for VocabWrap
[src]
Auto Trait Implementations
impl RefUnwindSafe for VocabWrap
impl Send for VocabWrap
impl Sync for VocabWrap
impl Unpin for VocabWrap
impl UnwindSafe for VocabWrap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,