当前位置:网站首页>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 .
边栏推荐
- Unified ordering background interface product description Chinese garbled
- torch建立的网络模型使用torchviz显示
- 优秀的软件测试人员,都具备这些能力
- Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
- Bottom up - physical layer
- 如何进行接口测试测?有哪些注意事项?保姆级解读
- 从表中名称映射关系修改视频名称
- LDAP应用篇(4)Jenkins接入
- VMware virtualization cluster
- The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
猜你喜欢

生成器参数传入参数

sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题

Sort according to a number in a string in a column of CSV file

【MySQL】锁

Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development

Screenshot in win10 system, win+prtsc save location

Process of obtaining the electronic version of academic qualifications of xuexin.com

【MySQL】鎖

指针进阶---指针数组,数组指针

游戏解包的危害及资源加密的重要性
随机推荐
Image,cv2读取图片的numpy数组的转换和尺寸resize变化
【ROS】usb_cam相机标定
Colorlog combined with logging to print colored logs
Remote storage access authorization
Circular reference of ES6 module
电脑F1-F12用途
Roguelike游戏成破解重灾区,如何破局?
Deep analysis of C language data storage in memory
Browser thread
Grayscale upgrade tidb operator
Sort according to a number in a string in a column of CSV file
Restore backup data on S3 compatible storage with br
Precise query of tree tree
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
个人电脑好用必备软件(使用过)
Let the bullets fly for a while
MySQL learning record 07 index (simple understanding)
Wincc7.5 download and installation tutorial (win10 system)
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
优秀的软件测试人员,都具备这些能力