DonutOptions
Options & Configuration · AiDotNet.Document.Options
Configuration options for the Donut document model.
Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → DocumentNeuralNetworkOptions → DonutOptions
Constructors
| Constructor | Summary |
|---|---|
DonutOptions() |
Initializes a new instance of the DonutOptions class carrying this model’s shipped defaults. |
Properties
| Property | Summary |
|---|---|
int DecoderHeads { get; set; } |
Gets or sets the decoder heads. |
int DecoderHiddenDim { get; set; } |
Gets or sets the decoder hidden dim. |
int EmbedDim { get; set; } |
Gets or sets the embed dim. |
int MaxGenerationLength { get; set; } |
Gets or sets the max generation length. |
int MlpRatio { get; set; } |
Gets or sets the mlp ratio. |
int WindowSize { get; set; } |
Gets or sets the window size. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Throws if a value this model requires has been left unset or is not positive. |