Enum rust_bert::pipelines::common::ConfigOption[][src]

pub enum ConfigOption {
Show 18 variants Bart(BartConfig), Bert(BertConfig), DistilBert(DistilBertConfig), Electra(ElectraConfig), Marian(BartConfig), MobileBert(MobileBertConfig), T5(T5Config), Albert(AlbertConfig), XLNet(XLNetConfig), GPT2(Gpt2Config), Reformer(ReformerConfig), ProphetNet(ProphetNetConfig), Longformer(LongformerConfig), Pegasus(PegasusConfig), GPTNeo(GptNeoConfig), MBart(MBartConfig), M2M100(M2M100Config), FNet(FNetConfig),
}
Expand description

Variants

Bart(BartConfig)

Tuple Fields

Bart configuration

Bert(BertConfig)

Tuple Fields

Bert configuration

DistilBert(DistilBertConfig)

Tuple Fields

DistilBert configuration

Electra(ElectraConfig)

Tuple Fields

Electra configuration

Marian(BartConfig)

Tuple Fields

Marian configuration

MobileBert(MobileBertConfig)

Tuple Fields

MobileBert configuration

T5(T5Config)

Tuple Fields

T5 configuration

Albert(AlbertConfig)

Tuple Fields

Albert configuration

XLNet(XLNetConfig)

Tuple Fields

XLNet configuration

GPT2(Gpt2Config)

Tuple Fields

GPT2 configuration

Reformer(ReformerConfig)

Tuple Fields

Reformer configuration

ProphetNet(ProphetNetConfig)

Tuple Fields

ProphetNet configuration

Longformer(LongformerConfig)

Tuple Fields

Longformer configuration

Pegasus(PegasusConfig)

Tuple Fields

Pegasus configuration

GPTNeo(GptNeoConfig)

Tuple Fields

GPT-Neo configuration

MBart(MBartConfig)

Tuple Fields

MBart configuration

M2M100(M2M100Config)

Tuple Fields

M2M100 configuration

FNet(FNetConfig)

Tuple Fields

FNet configuration

Implementations

Interface method to load a configuration from file

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.