GraFPrintFrequencyStrideLayer<T>
Layers · AiDotNet.NeuralNetworks.Layers
Applies GraFPrint’s frequency-only peak-extractor stride while preserving every time frame.
Inheritance: LayerBase<T> → GraFPrintFrequencyStrideLayer<T>
Implements: IShapeContract
How It Works
AiDotNet’s general 2-D convolution currently has one stride value for both spatial axes. The
reference peak extractor uses stride (2, 1). Running the learned convolution at stride
one and gathering every second frequency row is mathematically the same operation and keeps the
gather on the gradient tape, unlike copying selected values into a detached tensor.
Constructors
| Constructor | Summary |
|---|---|
GraFPrintFrequencyStrideLayer(int frequencyStride) |
Creates a frequency-only striding layer. |
Properties
| Property | Summary |
|---|---|
bool SupportsTraining { get; } |
|
int FrequencyStride { get; } |
Gets the frequency-axis stride. |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<OutputAxisContract> OutputAxesFor(int inputRank) |
|
void ResetState() |