当前位置:网站首页>How to calculate flops and params in deep learning
How to calculate flops and params in deep learning
2022-06-26 11:14:00 【Captain Flying Tiger Brigade】
Just as a record , Big man, please skip .
When model After reading , Use :
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))
that will do .
Such as resnet-101 Of :

Reference resources
边栏推荐
- c语言 --- 运算符和表达式
- 【深度学习理论】(7) 长短时记忆网络 LSTM
- APICloud 实现文档下载和预览功能
- 3、 Linked list exercise
- 即构「畅直播」上线!提供全链路升级的一站式直播服务
- Cet article présente la moyenne mobile quadratique linéaire et le fonctionnement simple d'Excel pour réaliser la prédiction des séries chronologiques dans la modélisation.
- Qixia housing and Urban Rural Development Bureau and fire rescue brigade carried out fire safety training
- 深度理解STM32的串口实验(寄存器)【保姆级教程】
- Laravel admin login add graphic verification code
- Cereals Mall - Distributed Advanced
猜你喜欢
![[work details] March 18, 2020](/img/24/a72230daac08e7ec5bd57df08071f8.jpg)
[work details] March 18, 2020

What does ack attack mean? How to defend against ack attacks?

携程机票 App KMM 跨端 KV 存储库 MMKV-Kotlin | 开源

Machine learning linear regression - Experimental Report

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

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

再获认可!知道创宇入选“业务安全推进计划”首批成员单位

Machine learning LDA - Experimental Report

MQTT断开重连

介绍一下实现建模中可能用到的时间序列预测之线性二次移动平均,Excel的简单操作
随机推荐
Qixia housing and Urban Rural Development Bureau and fire rescue brigade carried out fire safety training
laravel-admin隐藏按钮, 及设置按钮显示, 默认序列, form 表单的不可修改值
2021 Q3-Q4 Kotlin Multiplatform 使用现状 | 调查报告
一键部署属于自己的社区论坛
Splicing full paths and uploading multiple pictures of laravel admin when laravel uses OSS
Will updating a large amount of data in Oracle cause the undo space to explode
Excel operation of manual moving average method and exponential smoothing method for time series prediction
有手就行的移动平均法、指数平滑法的Excel操作,用来时间序列预测
手机注册股票开户 开户安全吗
Laravel admin uses native JS to realize sound prompt and automatic playback
express在nodejs中的基本使用
Uncaught reflectionexception: class view does not exist
基于slate构建文档编辑器
That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade
. Net, the usage of log components NLog, seriallog, log4net
你好!正向代理!
24 个必须掌握的数据库面试问题!
MySQL performance monitoring and SQL statements
Implementing MySQL master-slave replication in docker
统计遗传学:第二章,统计分析概念