当前位置:网站首页>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))边栏推荐
- Stm32f10x -- C Language-1
- Open source Flink has datastream connector written with holo or Flink SQL Conn
- Firewalld防火墙
- Temporary use of solo, difficult choice of Blog
- LAN SDN hard core technology insider 25 looking forward to the future - RDMA (Part 2)
- Principle of PWM and generation of PWM wave
- [machine learning whiteboard derivation series] learning notes - support vector machine and principal component analysis
- LNMP architecture setup (deploy discuz Forum)
- compute_class_weight() takes 1 positional argument but 3 were given
- [unity entry program] creator kitfps: first person shooting 3D game
猜你喜欢

Could not load dynamic library ‘libcudnn.so.8‘;

第10章 枚举类与注解

Solution of digital tube flash back after proteus8 professional version cracking

【机器学习-白板推导系列】学习笔记---支持向量机和主成分分析法

origin如何作一张图中多张子图是柱状图(或其他图)

Adobe audit prompts that the sampling rate of audio input does not match the output device - problem solving

Finding the finite zero point of transfer function under different sampling periods

Maker harmony OS application development training notes 01

你真的会写二分查找吗——变种二分查找

Adobe Audition提示 音频输入的采样率与输出设备不匹配——问题解决
随机推荐
第13章 IO流
Common power supply problems and solutions of Arduino
compute_class_weight() takes 1 positional argument but 3 were given
Firewalld防火墙
一些MathType常用快捷键
MATLAB画带延时系统的伯德图
[special topic] summary of RMQ question brushing with ST table
The difference between extern and static
[unity entry program] creator kitfps: first person shooting 3D game
Codeforces round #664C
LeetCode 02: 剑指 Offer 58 - I. 翻转单词顺序(简单); T123. 验证回文串 ; T9. 回文数
暂用 Solo,博客选择困难
TLC549Proteus仿真&Sallen-Key滤波器&AD736Vrms到DC转换&Proteus查看51寄存器值
Summary of C language knowledge involved in learning STM32F103 (link only)
PWM的原理和PWM波的产生
Detailed explanation of hash table
LAN SDN hard core technology insider 23 looking forward to the future - RDMA (Part 1)
Adobe audit prompts that the sampling rate of audio input does not match the output device - problem solving
The C programming language 2nd -- Notes -- 6.7
Newton Raphson iterative method