当前位置:网站首页>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 .
边栏推荐
- 生成器参数传入参数
- Huawei cloud OBS file upload and download tool class
- vulnhub hackme: 1
- Analysis of the source code of cocos2d-x for mobile game security (mobile game reverse and protection)
- On the inverse order problem of 01 knapsack problem in one-dimensional state
- The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
- Roguelike游戏成破解重灾区,如何破局?
- sys. argv
- C語言雙指針——經典題型
- [MySQL] lock
猜你喜欢
![[MySQL] log](/img/e9/1617122888c096cf6aba2bdb88f0ef.png)
[MySQL] log

Precise query of tree tree

Deep analysis of C language data storage in memory

查看局域网中电脑设备

Image, CV2 read the conversion and size resize change of numpy array of pictures

C language double pointer -- classic question type
![[brush questions] top101 must be brushed in the interview of niuke.com](/img/55/5ca957e65d48e19dbac8043e89e7d9.png)
[brush questions] top101 must be brushed in the interview of niuke.com

2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers

JVM performance tuning and practical basic theory - Part 1

sublime text的编写程序时的Tab和空格缩进问题
随机推荐
Summary of MySQL index failure scenarios
【MySQL】日志
On the inverse order problem of 01 knapsack problem in one-dimensional state
【刷题】牛客网面试必刷TOP101
软件卸载时遇到trying to use is on a network resource that is unavailable
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
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
LDAP application (4) Jenkins access
堆排序详解
win10系统中的截图,win+prtSc保存位置
Research Report on Market Research and investment strategy of microcrystalline graphite materials in China (2022 Edition)
sys.argv
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
Bottom up - physical layer
Restore backup data on S3 compatible storage with br
torch建立的网络模型使用torchviz显示
Fibonacci sequence
leetcode刷题 (5.29) 哈希表
Screenshot in win10 system, win+prtsc save location
JS native implementation shuttle box