提交 2ddadd2f authored 作者: Iban Harlouchet's avatar Iban Harlouchet 提交者: Arnaud Bergeron

testcode for doc/library/compile/debugmode.txt

上级 f8b377fe
...@@ -25,8 +25,12 @@ a cluster. ...@@ -25,8 +25,12 @@ a cluster.
DebugMode can be used as follows: DebugMode can be used as follows:
.. code-block:: python .. testcode::
import theano
from theano import tensor
from theano.compile.debugmode import DebugMode
x = tensor.dscalar('x') x = tensor.dscalar('x')
f = theano.function([x], 10*x, mode='DebugMode') f = theano.function([x], 10*x, mode='DebugMode')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论