Enum rust_bert::pipelines::text_generation::TextGenerationOption [−][src]
pub enum TextGenerationOption {
GPT2(GPT2Generator),
GPT(OpenAIGenerator),
GPTNeo(GptNeoGenerator),
XLNet(XLNetGenerator),
Reformer(ReformerGenerator),
}Expand description
Variants
GPT2(GPT2Generator)
Tuple Fields
Text Generator based on GPT2 model
GPT(OpenAIGenerator)
Tuple Fields
Text Generator based on GPT model
GPTNeo(GptNeoGenerator)
Tuple Fields
Text Generator based on GPT-Neo model
XLNet(XLNetGenerator)
Tuple Fields
Text Generator based on XLNet model
Reformer(ReformerGenerator)
Tuple Fields
Text Generator based on Reformer model
Implementations
Returns the ModelType for this TextGenerationOption
Interface method to access tokenizer
Interface method to generate() of the particular models.
Auto Trait Implementations
impl RefUnwindSafe for TextGenerationOption
impl Send for TextGenerationOption
impl !Sync for TextGenerationOption
impl Unpin for TextGenerationOption
impl UnwindSafe for TextGenerationOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
