How to calculate number of floating-point operations (FLOPs) of a CNN model in MatLab
Afficher commentaires plus anciens
How to calculate number of floating-point operations (FLOPs) of a CNN model in MatLab?
2 commentaires
Walter Roberson
le 13 Fév 2023
The number of FLOPs needed to train the model, or the number of FLOPs needed to classify or predict ?
FLOPs is not used much anymore except for academic discussions as an approximation to algorithm costs similar to 'Big-O notation". There are a lot of things that FLOPs do not take into account. For example if you are computing on a GPU, then the common operation A*x + B might well be converted into a single hardware instruction to do Fused Muitiply And Add; https://en.wikipedia.org/wiki/Multiply%E2%80%93accumulate_operation replacing two floating point operations with a single hardware instruction.
debojit sharma
le 14 Fév 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Particle & Nuclear Physics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!