Skip to content

Instantly share code, notes, and snippets.

@dichen-cd
dichen-cd / draw_net.py
Last active March 31, 2016 04:53 — forked from ebenolson/draw_net.py
Functions to draw Lasagne networks with graphviz, like Caffe's draw_net.py
"""
Functions to create network diagrams from a list of Layers.
Examples:
Draw a minimal diagram to a pdf file:
layers = lasagne.layers.get_all_layers(output_layer)
draw_to_file(layers, 'network.pdf', output_shape=False)
Draw a verbose diagram in an IPython notebook: