用于创建PyTorch执行图的可视化的小程序包(pytorch可视化特征图)

网友投稿 783 2022-10-12

用于创建PyTorch执行图的可视化的小程序包(pytorch可视化特征图)

用于创建PyTorch执行图的可视化的小程序包(pytorch可视化特征图)

PyTorchViz

A small package to create visualizations of PyTorch execution graphs and traces.

Installation

Install graphviz, e.g.:

brew install graphviz

Install the package itself:

pip install torchviz

Usage

There are two functions, make_dot to make graphs from any PyTorch functions (requires that at least one input Variable requires_grad), and make_dot_from_trace that uses outputs of torch.jit.trace (does not always work). See examples.ipynb.

Acknowledgements

The script was moved from functional-zoo where it was created with the help of Adam Paszke, Soumith Chintala, Anton Osokin, and uses bits from tensorboard-pytorch.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Openlayers示例4 | Animated GIF
下一篇:使用 iperf 工具测试 Linux 网络性能
相关文章

 发表评论

暂时没有评论,来抢沙发吧~