LayoutLMv2Options

Options & Configuration · AiDotNet.Document.Options

Configuration options for the LayoutLMv2 document model.

Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → DocumentNeuralNetworkOptions → LayoutLMv2Options

Constructors

Constructor Summary
LayoutLMv2Options() Initializes a new instance of the LayoutLMv2Options class carrying this model’s shipped defaults.

Properties

Property Summary
double LearningRate { get; set; } Gets or sets the learning rate.
double WeightDecay { get; set; } Gets or sets the decoupled weight decay.
int VisualBackboneChannels { get; set; } Gets or sets the visual backbone channels.

Methods

Method Summary
void Validate() Throws if a value this model requires has been left unset or is not positive.