Enum finalfusion::prelude::VocabWrap [−][src]
pub enum VocabWrap {
SimpleVocab(SimpleVocab),
ExplicitSubwordVocab(ExplicitSubwordVocab),
FastTextSubwordVocab(FastTextSubwordVocab),
FloretSubwordVocab(FloretSubwordVocab),
BucketSubwordVocab(BucketSubwordVocab),
}
Expand description
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)
Tuple Fields
0: SimpleVocab
ExplicitSubwordVocab(ExplicitSubwordVocab)
Tuple Fields
FastTextSubwordVocab(FastTextSubwordVocab)
Tuple Fields
FloretSubwordVocab(FloretSubwordVocab)
Tuple Fields
BucketSubwordVocab(BucketSubwordVocab)
Tuple Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VocabWrap
impl UnwindSafe for VocabWrap
Blanket Implementations
Mutably borrows from an owned value. Read more