PSABlock<T>
Models & Types · AiDotNet.ComputerVision.Detection.ObjectDetection.YOLO
YOLO11’s PSABlock: multi-head self-attention with a depthwise positional encoding on the values, then a 2x FFN, each added back to its input.
Inheritance: LayerBase<T> → PSABlock<T>
Implements: IShapeContract
Constructors
| Constructor | Summary |
|---|---|
PSABlock(int channels, int heads) |
Creates the block. |
Properties
| Property | Summary |
|---|---|
bool SupportsTraining { get; } |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<ILayer<T>> GetSubLayers() |
|
IReadOnlyList<OutputAxisContract> OutputAxesFor(int inputRank) |
|
void ResetState() |
|
void SetTrainingMode(bool isTraining) |
|
void UpdateParameters(T learningRate) |