How is the spectralConvolution1dLayer forward computation process performed
Show older comments
spectralConvolution1dLayer performs convolution on 1-D input using frequency domain transformations. The layer convolves the input by using the frequency domain representation, where convolution becomes multiplication via the Fourier theorem. I want to know how the spectral convolution is performed when the 1-D input is "CBT" dlarray and the weights is NumModes-by-InputSize-by-HiddenSize dlarray.
Answers (1)
According to the doc you referenced, the convolution is performed with respect to the time dimension in that case,
For time series and vector sequence input (data with three dimensions corresponding to the channels, observations, and time steps), the layer convolves over the time dimension.
3 Comments
Chuguang Pan
on 26 Jun 2026 at 3:28
Edited: Torsten
on 26 Jun 2026 at 15:18
Matt J
on 26 Jun 2026 at 15:14
I want to know the internal computation details
Like what? The documentation tells you it's an FFT-based convolution. What else is there to know?
Chuguang Pan
on 27 Jun 2026 at 2:12
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!