当前位置:网站首页>The network model established by torch is displayed by torch viz
The network model established by torch is displayed by torch viz
2022-07-06 08:33:00 【MAR-Sky】
torchviz.make_dot
MyConvNet = VGG() # It can be a network
x = torch.randn(4, 3, 256, 256).requires_grad_(True) # Define the input value of a network
y = MyConvNet(x) # Get the predicted value of the network
MyConvNetVis = make_dot(y, params=dict(list(MyConvNet.named_parameters()) + [('x', x)]))
MyConvNetVis.format = "png"
# Specify the folder where the file is generated
MyConvNetVis.directory = "data"
# Generate the file
MyConvNetVis.view()
We need to pay attention to , Input format It is the same as the input channel format defined by the network ;
rely on graphviz library
I see many things on the Internet that need to be downloaded graphviz Of zip or mis file , Also configure path; And then use python Proceed again pip After installation and restart, I don't know what the principle is . Personal attempts only require Install in the environment in use graphviz library You can use .
边栏推荐
- Restful API design specification
- 根据csv文件某一列字符串中某个数字排序
- The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
- 2022.02.13 - 238. Maximum number of "balloons"
- sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
- Research and investment forecast report of citronellol industry in China (2022 Edition)
- 704 二分查找
- Day29-t77 & t1726-2022-02-13-don't answer by yourself
- Sort according to a number in a string in a column of CSV file
- JS pure function
猜你喜欢

visdom可视化实现与检查介绍

2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers

Pointer advanced --- pointer array, array pointer

marathon-envs项目环境配置(强化学习模仿参考动作)

Online yaml to CSV tool

Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products

Circular reference of ES6 module
![[cloud native] teach you how to build ferry open source work order system](/img/fb/507f763791235bd00bc8201e5d7741.png)
[cloud native] teach you how to build ferry open source work order system

egg. JS getting started navigation: installation, use and learning

【MySQL】鎖
随机推荐
visdom可视化实现与检查介绍
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
[MySQL] database stored procedure and storage function clearance tutorial (full version)
egg. JS directory structure
Image, CV2 read the conversion and size resize change of numpy array of pictures
Precise query of tree tree
Online yaml to CSV tool
目标检测——Pytorch 利用mobilenet系列(v1,v2,v3)搭建yolov4目标检测平台
Remote storage access authorization
sys.argv
[MySQL] log
egg. JS project deployment online server
leetcode刷题 (5.31) 字符串
C language double pointer -- classic question type
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
gcc动态库fPIC和fpic编译选项差异介绍
JS native implementation shuttle box
JS pure function
China polyether amine Market Forecast and investment strategy report (2022 Edition)