How to calculate number of floating-point operations (FLOPs) of a CNN model in MatLab
Mostrar comentarios más antiguos
How to calculate number of floating-point operations (FLOPs) of a CNN model in MatLab?
2 comentarios
Walter Roberson
el 13 de Feb. de 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
el 14 de Feb. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Particle & Nuclear Physics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!