当前位置:网站首页>深度学习中的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的:

参考
边栏推荐
- MySQL模糊查询详解
- Wangeditor uploading local video modification
- Laravel-admin 登录添加图形验证码
- 机器学习SVM——实验报告
- Sqli labs range 1-5
- [Beiyou orchard microprocessor design] 10 serial communication serial communication notes
- 目前为止最全的Kubernetes最新版核心命令
- 代码规范 & 详细解释 husky、prettier、eslint、lint-staged 的作用和使用
- Easyx-----c语言实现2048
- 深圳市福田区支持文化创意产业发展若干措施
猜你喜欢

JWT (SSO scheme) + three ways of identity authentication

Machine learning deep neural network -- Experimental Report

C language -- operators and expressions

matlab 编程实例: 如何统计元胞数组中元素的数量

Easyx-----c语言实现2048

滑动窗口

FastRCNN

PC QQ hall upload update modify VersionInfo

Redis (basic) - learning notes

That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade
随机推荐
Using reflection to export entity data to excel
24 个必须掌握的数据库面试问题!
Alibaba cloud OSS - object storage service (tool)
Laravel writes native SQL statements
2、 Linear table
laravel中使用group by分组并查询数量
redux相关用法
UDP Flood攻击防御原理
ISO 26262 - 2 functional safety concept
FasterRCNN
Plookup table in appliedzkp zkevm (8)
sliding window
PC QQ大厅 上传更新 修改versionInfo
DD command tests the read and write speed of Huawei Kunpeng & Hongshan solid state storage disk
指南针软件买股票进行交易安全吗?怎么开户买股票
loggie 编码以及换行符测试
[Beiyou orchard microprocessor design] 10 serial communication serial communication notes
机器学习LDA——实验报告
matlab 编程实例: 如何统计元胞数组中元素的数量
MySQL performance monitoring and SQL statements