当前位置:网站首页>深度学习中的FLOPs和Params如何计算
深度学习中的FLOPs和Params如何计算
2022-06-26 10:20:00 【captain飞虎大队】
仅作为记录,大佬请跳过。
当model读取后,使用:
from thop import profile
dummy_input = torch.randn(1, 3, 224, 224)
flops, params = profile(model, (dummy_input,))
print('flops: ', flops, 'params: ', params)
print('flops: %.2f M, params: %.2f M' % (flops / 1000000.0, params / 1000000.0))
即可。
如resnet-101的:

参考
边栏推荐
猜你喜欢

2021 Q3-Q4 Kotlin Multiplatform 使用现状 | 调查报告

Nacos2.x.x start error creating bean with name 'grpcclusterserver';

April 13, 2021 interview with beaver family
![[echart] i. how to learn echart and its characteristic document reading notes](/img/21/5405ae302df77d2ba07d9f5e5537f3.jpg)
[echart] i. how to learn echart and its characteristic document reading notes

机器学习深度神经网络——实验报告

QT connection MySQL data query failed

c语言 --- 运算符和表达式

Solidworks渲染技巧如何不显示边线--显示样式设定
![[work details] March 18, 2020](/img/24/a72230daac08e7ec5bd57df08071f8.jpg)
[work details] March 18, 2020

C language -- operators and expressions
随机推荐
目前为止最全的Kubernetes最新版核心命令
使用‘百家饭’自动生成API调用:JS部分进展(二)
工作汇报(2)
Laravel admin login add graphic verification code
Uncaught reflectionexception: class view does not exist
【深度学习理论】(7) 长短时记忆网络 LSTM
Splicing full paths and uploading multiple pictures of laravel admin when laravel uses OSS
Common regular expressions - tool classes (mobile number, email, QQ, fax)
基于slate构建文档编辑器
express在nodejs中的基本使用
深度理解STM32的串口实验(寄存器)【保姆级教程】
JS take the date of the previous month 【 pit filling 】
C language -- operators and expressions
Matrix fast power notes
02-Redis数据结构之链表
Query online users and forced withdrawal users based on oauth2
FastRCNN
PC QQ大廳 上傳更新 修改versionInfo
Server single and two-way adjustable one key mutual trust script!
深圳市福田区支持文化创意产业发展若干措施