当前位置:网站首页>Pytorch shows the summary like tensorflow
Pytorch shows the summary like tensorflow
2022-07-27 11:47:00 【Xiao Chen who wants money】
pytorch There's a library , It's called 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))边栏推荐
- 剑指 Offer 笔记: T58 - II. 左旋转字符串
- Moveit2 - 4. robot model and robot state
- 【Unity入门计划】CreatorKitFPS:第一人称射击3D小游戏
- LNMP架构搭建(部署Discuz论坛)
- MATLAB画带延时系统的伯德图
- The C programming language (2nd) -- Notes -- 1.10
- 一些MathType常用快捷键
- 箱型图介绍
- C programming language (2nd Edition) -- Reading Notes -- 1.5.1
- Maker harmony OS application development training notes 01
猜你喜欢

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

LNMP架构搭建(部署Discuz论坛)

82. (cesium home) cesium points move on 3D models

Detailed explanation of hash table

WGet warning: unable to verify

C custom set

【机器学习-白板推导系列】学习笔记---条件随机场

C# 自定义集合

Keil MDK compilation appears..\user\stm32f10x H (428): error: # 67: expected a "}" wrong solution

第13章 IO流
随机推荐
Beyond Compare 3 下一个差异段/向下搜索箭头 找不到了
[machine learning whiteboard derivation series] learning notes - probability graph model and exponential family distribution
Greek alphabet reading
What is private traffic?
Error encountered in adding quick open option to right-click menu:
The C programming language -- (2nd) -- Notes -- 4.11.2
Firewalld防火墙
WGet warning: unable to verify
Adobe audit prompts that the sampling rate of audio input does not match the output device - problem solving
Proteus8专业版破解后用数码管闪退的解决
LeetCode 03: T58. 最后一个单词的长度(简单); 剑指 Offer 05. 替换空格(简单); 剑指 Offer 58 - II. 左旋转字符串(简单)
C programming language (2nd Edition) -- Reading Notes -- 1.5.4
ZABBIX custom monitoring items
C programming language (2nd Edition) -- Reading Notes -- 1.5.2
【机器学习-白板推导系列】学习笔记---条件随机场
LeetCode 01: T1. 两数之和 ; T1108. IP 地址无效化 ; T344. 反转字符串
检定和校准的区别
请教大佬们,请问用flink sink数据到mysql有事务控制吗?如果在一个checkpoint时
Open source Flink has datastream connector written with holo or Flink SQL Conn
剑指 Offer 笔记: T53 - I. 在排序数组中查找数字