To visualize the internal relation graph of theano variables.php
conda install pydot graphviz
python
add graphviz path D:\Anaconda\Library\bin\graphviz
to system PATH
[windows version]windows
or:app
http://www.graphviz.org/Download_windows.php
.conda install pydot graphviz
C:\Program Files (x86)\Graphviz2.38\bin
to system PATH[windows version]>>> import theano >>> import theano.tensor as T >>> x=T.matrix('x') >>> y=T.matrix('y') >>> z=x**2+y**3 >>> f=theano.function([x,y],z) >>> theano.printing.pydotprint(z, outfile="symbolic_graph_unopt.png", var_with_name_simple=True) The output file is available at symbolic_graph_unopt.png
>>> theano.printing.pydotprint(f, outfile="symbolic_graph_opt.png", var_with_name_simple=True) The output file is available at symbolic_graph_opt.png