栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

PyTorch下的可视化工具

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

PyTorch下的可视化工具

可视化网络总共有三个工具: 1.1 通过HiddenLayer可视化网络 1.2 通过PyTorchViz可视化网络 1.3 使用Netron可视化

1.1 + 1.2 的使用方法如下:PyTorch下的可视化工具 - 知乎

1.3的使用方法:使用pytorchviz和Netron可视化pytorch网络结构_-牧野-的博客-CSDN博客_netron pytorch


有一个问题就是:

解决 HiddenLayer 可视化不显示神经网络数据流维度大小?

找到 pytorch_builder.py 文件,修改 get_shape(torch_node) 函数如下:

* 找到 pytorch_builder.py 文件的方法是:直接在文件夹中打开“build_graph”文件,然后文件夹内就有pytorch_builder.py

 

def get_shape(torch_node):
    """Return the output shape of the given Pytorch node."""
    # Extract node output shape from the node string representation
    # This is a hack because there doesn't seem to be an official way to do it.
    # See my quesiton in the PyTorch forum:
    # https://discuss.pytorch.org/t/node-output-shape-from-trace-graph/24351/2
    # TODO: find a better way to extract output shape
    # TODO: Assuming the node has one output. Update if we encounter a multi-output node.
    shape = torch_node.output().type().sizes()
    return shape

 


二、训练过程可视化 2.1 通过tensorboardX可视化训练过程

【Pytorch】tensorboardX==》数据可视化_马鹏森的博客-CSDN博客

三、使用Visdom进行可视化

PyTorch下的可视化工具 - 知乎

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/858633.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号