Definition of "Frame" for Recurrent models
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi all,
I am profiling the performance of the MATLAB Deep Learning HDL Toolbox for LSTM-based models.
When estimating the processor's performance with the estimatePerformance function, I couldn't find a clear definition of the term "Frame" in the context of recurrent models.
Does it refer to a single element within the sequence to be processed (i.e. a timestep), or does it represent the entire sequence?
Since changing the number of timesteps in the model doesn't affect the processing time estimate for 1 frame, I am assuming it refers to a single element of the sequence. However, I would appreciate confirmation or clarification on this.
Thanks in advance for your help!
0 comentarios
Respuestas (2)
Sreeram
el 29 de En. de 2025
Hi Tommaso,
The term "Frame" stands for the entire sequence here, and not a single element. This applies to all layers supported by the toolbox, including those used in recurrent models like LSTMs.
The "FrameCount" parameter in "estimatePerformance" function specifies the number of such sequences (or frames) considered during performance estimation. By default, "FrameCount" is set to 1, meaning the performance metrics are calculated based on processing a single sequence. Adjusting the "FrameCount" allows you to estimate performance for multiple sequences as needed.
Thanks!
Wang Chen
el 31 de En. de 2025
Hi Tommaso,
To clarify, when running an LSTM network, the term "Frame" in the estimatePerformance report refers to an element in the sequence, not the entire sequence.
For example, following examples shows an example of the profiler report, which uses the same format as the estimatePerformance report:
In the context of the LSTM network:
- The FramesNum is the sequence length (The number of elements in the sequence)
- The Total Latency is the total FPGA clock cycles used to run the entire sequence
- The Frames/s is calculated to reflect how many elements can be processed each second. So based on this Frames/s number, and your sequence length, you can calculate the total seconds needed to finish the entire sequence.
Thanks,
Wang
0 comentarios
Ver también
Categorías
Más información sobre System Integration of Deep Learning Processor IP Core en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!