提交 ecd2928b authored 作者: Frederic Bastien's avatar Frederic Bastien

use a graph instead of debugprint

上级 013308a1
......@@ -551,15 +551,9 @@ modes regard as fine.
>>> y = 2. * x
>>> g = T.grad(y, x)
# Print the not optimized graph
>>> theano.printing.debugprint(g)
Elemwise{mul} [@A] ''
|Elemwise{second,no_inplace} [@B] ''
| |Elemwise{mul,no_inplace} [@C] ''
| | |TensorConstant{2.0} [@D]
| | |x [@E]
| |TensorConstant{1.0} [@F]
|TensorConstant{2.0} [@D]
>>> theano.printing.pydotprint(g)
\end{lstlisting}
\includegraphics[width=0.75\textwidth]{theano_grad.png}
\end{frame}
%% \begin{frame}{Theano Variables}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论