Skip to content

Instantly share code, notes, and snippets.

View rakshithShetty's full-sized avatar

Rakshith Shetty rakshithShetty

  • Max Planck Institute of Informatics
  • Saarbrucken
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()}