InternImageBlockLayer<T>
Layers · AiDotNet.NeuralNetworks.Layers
Implements one pre-normalized InternImage block with a deformable spatial mixer and a GELU feed-forward network, each protected by a residual path.
Inheritance: LayerBase<T> → InternImageBlockLayer<T>
Implements: IShapeContract
Constructors
| Constructor | Summary |
|---|---|
InternImageBlockLayer(int channels, int groups) |
Creates an InternImage block for a fixed channel width. |
Properties
| Property | Summary |
|---|---|
bool SupportsTraining { get; } |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<ILayer<T>> GetSubLayers() |
|
IReadOnlyList<OutputAxisContract> OutputAxesFor(int inputRank) |
Derived from this type’s [TensorLayout] declarations. |
void ClearGradients() |
|
void ResetState() |
|
void SetTrainingMode(bool isTraining) |
|
void UpdateParameters(T learningRate) |