All Projects → szagoruyko → Pytorchviz

szagoruyko / Pytorchviz

Licence: mit
A small package to create visualizations of PyTorch execution graphs

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to Pytorchviz

2016 Ml Contest
Machine learning contest - October 2016 TLE
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Monthly Challenges
Repository containing monthly challenges about quantum computing.
Stars: ✭ 126 (-93.87%)
Mutual labels:  jupyter-notebook
Site
Course materials for the Automating GIS processes -course, University of Helsinki, Finland
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Arduino Max30100
Arduino library for MAX30100, integrated oximeter and heart rate sensor
Stars: ✭ 134 (-93.48%)
Mutual labels:  jupyter-notebook
Pydy Tutorial Human Standing
PyDy tutorial materials for MASB 2014, PYCON 2014, and SciPy 2014/2015.
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Robust representations
Code for "Learning Perceptually-Aligned Representations via Adversarial Robustness"
Stars: ✭ 137 (-93.33%)
Mutual labels:  jupyter-notebook
Deeplearning
Deep Learning introduction and its application in various fields
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Deep Steganography
Hiding Images within other images using Deep Learning
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Poppy
Physical Optics Propagation in Python
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Data Driven Pdes
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Data Science Wg
SF Brigade's Data Science Working Group.
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Blog stuff
experiments and snippets used on the blog
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Pytorch 101 Tutorial Series
PyTorch 101 series covering everything from the basic building blocks all the way to building custom architectures.
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Opencv projects
List of OpenCV projects to further increase the computer vision community. Coding in Python & C++(In progress).
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Reproduce Chexnet
Reproduce CheXNet
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Nbgallery
Enterprise Jupyter notebook sharing and collaboration app
Stars: ✭ 135 (-93.43%)
Mutual labels:  jupyter-notebook
Kyle School
쏘카 데이터 그룹 사내 신입/인턴을 대상으로 한 카일 스쿨
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Deeplearningfornlpinpytorch
An IPython Notebook tutorial on deep learning for natural language processing, including structure prediction.
Stars: ✭ 1,744 (-15.09%)
Mutual labels:  jupyter-notebook
Python Deep Learning Projects
Python Deep Learning Projects, published by Packt
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook
Spanet
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset (CVPR'19)
Stars: ✭ 136 (-93.38%)
Mutual labels:  jupyter-notebook

PyTorchViz

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

Open In Colab

Installation

Install graphviz, e.g.:

brew install graphviz

Install the package itself:

pip install torchviz

Usage

Example usage of make_dot:

model = nn.Sequential()
model.add_module('W0', nn.Linear(8, 16))
model.add_module('tanh', nn.Tanh())
model.add_module('W1', nn.Linear(16, 1))

x = torch.randn(1, 8)
y = model(x)

make_dot(y.mean(), params=dict(model.named_parameters()))

image

Set show_attrs=True and show_saved=True to see what autograd saves for the backward pass. (Note that this is only available for pytorch >= 1.9.)

model = nn.Sequential()
model.add_module('W0', nn.Linear(8, 16))
model.add_module('tanh', nn.Tanh())
model.add_module('W1', nn.Linear(16, 1))

x = torch.randn(1, 8)
y = model(x)

make_dot(y.mean(), params=dict(model.named_parameters()), show_attrs=True, show_saved=True)

image

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. Other contributors are @willprice, @soulitzer, @albanD.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].