Skip to content

Instantly share code, notes, and snippets.

View XinDongol's full-sized avatar
🏁
Loading...

Xin (Simon) Dong XinDongol

🏁
Loading...
View GitHub Profile
from graphviz import Digraph
from torch.autograd import Variable
import torch
def make_dot(var, params=None):
if params is not None:
assert isinstance(params.values()[0], Variable)
param_map = {id(v): k for k, v in params.items()}