VisionTransformerOptions
Options & Configuration · AiDotNet.NeuralNetworks.Options
Configuration options for the VisionTransformer.
Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → VisionTransformerOptions
Constructors
| Constructor | Summary |
|---|---|
VisionTransformerOptions() |
Initializes a new instance carrying the model’s published defaults. |
Properties
| Property | Summary |
|---|---|
int HiddenDim { get; set; } |
Gets or sets the width of the transformer encoder. |
int MlpDim { get; set; } |
Gets or sets the width of the feed-forward block. |
int NumHeads { get; set; } |
Gets or sets the number of attention heads. |
int NumLayers { get; set; } |
Gets or sets the number of transformer blocks. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Throws if a value this model requires has been left unset or is not positive. |