当前位置:网站首页>pytorch和tensorflow一样展示summary
pytorch和tensorflow一样展示summary
2022-07-27 10:59:00 【想搞钱的小陈】
pytorch有一个库,叫torchsummary 。
import torch
from torchsummary import summary
from models import TSN
net = TSN(101, 8, 'RGB', base_model='resnet50', consensus_type='avg', dropout=0.5,
partial_bn=False, pretrain='imagenet',
is_shift=False, shift_div=8, shift_place='blockres',
fc_lr5=True, temporal_pool=False, non_local=False)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = net.to(device)
summary(model, (1, 24, 28, 28))边栏推荐
- Bus error problem of MMAP and its solution
- CTF crypto RSA getting started
- 为什么选择智能电视?
- Quantitative industry knowledge summary
- 局域网SDN技术硬核内幕 13 从局域网到互联网
- Beyond Compare 3 下一个差异段/向下搜索箭头 找不到了
- Knapsack problem acwing 9. grouping knapsack problem
- Luogu p1441 weight weighing
- Game theory acwing 893. Set Nim game
- zabbix自定义监控项
猜你喜欢

博弈论 AcWing 894. 拆分-Nim游戏

Digital triangle model acwing 1015. Picking flowers

Find the combination number acwing 888. find the combination number IV

Find the combinatorial number acwing 889. 01 sequence satisfying the condition

容斥原理 AcWing 890. 能被整除的数

记忆化搜索 AcWing 901. 滑雪

Interval problem acwing 906. Interval grouping

Solutions to errors in tensorflow operation

JUC框架 从Runnable到Callable到FutureTask 使用浅析

Everything cannot be searched for startup_ Lpc11x.s file
随机推荐
Modelarts image classification and object detection
C custom set
【Unity入门计划】CreatorKitFPS:第一人称射击3D小游戏
Why choose smart TV?
The longest ascending subsequence model acwing 1016. The sum of the largest ascending subsequence
第7章 异常处理
(5) Printf (instead of echo)
Everything cannot be searched for startup_ Lpc11x.s file
Summary of C language knowledge involved in learning STM32F103 (link only)
Digital triangle model acwing 1015. Picking flowers
Memory search acwing 901. Skiing
中国剩余定理 AcWing 204. 表达整数的奇怪方式
Solutions to errors in tensorflow operation
Luogu p1441 weight weighing
局域网SDN硬核技术内幕 25 展望未来——RDMA(下)
Knapsack problem acwing 9. grouping knapsack problem
Moveit2 -- 2. Quick start of moveit in rviz
Backpack model acwing 1022. Collection of pet elves
The difference between extern and static
C programming language (2nd Edition) -- Reading Notes -- 1.5.4