Analysis of Computational Complexity and Space Complexity (NN algorithem)
2017-08-20 15:14
435 查看
convolution layer
对于卷积层,每个输入的特征图有一个大小为Fw∗Fh的卷积核,并产生Wcout∗Hcout大小的输出特征图。同时输入输出特征图数量分别为Nin,Ncout
对于每个元素需要乘法和加法两种操作,则卷积层所有的操作为
Cconv=2∗Nin∗Fw∗Fh∗Wcout∗Hcout∗Ncout
relu激活层
对于RELU激活层,则对于每个单元,仅有一个操作(比较操作),则结果为
Crelu=Ncout
pooling layer
下采样层中,每个filter的大小为Pw∗Ph,产生Npout个大小为Wpout∗Hpout的输出图像,则pooling layer的所有操作为
Cpool=Pw∗Ph∗Wpout∗Hpout∗Npout
FC layer
全链接层中,输入特征数量和权重的进行乘加操作,则结果为
CFC=2∗Nfcin∗Nfcout
权重数据
SConv=w2∗Ncin∗Ncout
fc层
SConv=NFCin∗NFCout
对于VGG16模型,统计如下表
from paper:Acceleration of Deep Learning on FPGA
对于卷积层,每个输入的特征图有一个大小为Fw∗Fh的卷积核,并产生Wcout∗Hcout大小的输出特征图。同时输入输出特征图数量分别为Nin,Ncout
对于每个元素需要乘法和加法两种操作,则卷积层所有的操作为
Cconv=2∗Nin∗Fw∗Fh∗Wcout∗Hcout∗Ncout
relu激活层
对于RELU激活层,则对于每个单元,仅有一个操作(比较操作),则结果为
Crelu=Ncout
pooling layer
下采样层中,每个filter的大小为Pw∗Ph,产生Npout个大小为Wpout∗Hpout的输出图像,则pooling layer的所有操作为
Cpool=Pw∗Ph∗Wpout∗Hpout∗Npout
FC layer
全链接层中,输入特征数量和权重的进行乘加操作,则结果为
CFC=2∗Nfcin∗Nfcout
权重数据
SConv=w2∗Ncin∗Ncout
fc层
SConv=NFCin∗NFCout
对于VGG16模型,统计如下表
from paper:Acceleration of Deep Learning on FPGA
相关文章推荐
- Time and Space Complexity of Recursive Algorithms
- 『BASH』——Hadex's brief analysis of "Lookahead and Lookbehind Zero-Length Assertions"
- Time complexity analysis of algorithms
- Design and Analysis of Algorithms_Divide-and-Conquer
- chapter 2 : The Complexity of Algorithms and the Lower Bounds of Problems
- 优秀课件笔记之重要类型旅游地介绍与分析Introduction and Analysis of Tourist Destinationsof Destinations 2
- Technical and Visual Analysis of Overwatch
- Latent Semantic Analysis (LSA) Tutorial - Advantages, Disadvantages, and Applications of LSA
- Design and Analysis of Algorithms_Fundamentals of the Analysis of Algorithm Efficiency
- 优秀课件笔记之重要类型旅游地介绍与分析Introduction and Analysis of Tourist Destinationsof Destinations 3
- Performance Measure of Algorithms(2)--Space Complexity & Time Complexity
- greedy algorithms notes of Date Structure and Algorithms Analysis in C
- Risk of Crossed Paths Grows in Increasingly Crowded Skies and Space
- Analysis and implement of Consistent Hashing Algorithm
- Business analysis and SOA part 1 of 6: The benefits of business services [by Thomas Erl]
- NN Representational power && Setting number of layers and their sizes
- Business analysis and SOA part 2 of 6: Business service models and the entity-centric business service [by Thomas Erl]
- TACAS(International Conference on Tools and Algorithms for the Construction and Analysis of Systems)到底是什么档次的会议?
- Detection and Analysis of Candlestick Patterns
- How to collect stats of apps from CloudFoundry and do analysis?