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

testcode for doc/faq.txt

上级 aebc4e7d
...@@ -120,7 +120,10 @@ the function was compiled. ...@@ -120,7 +120,10 @@ the function was compiled.
For example, replace the following For example, replace the following
.. code-block:: python .. testcode:: faster
import theano
from theano import function
x = theano.tensor.scalar('x') x = theano.tensor.scalar('x')
f = function([x], x + 1.) f = function([x], x + 1.)
...@@ -128,7 +131,11 @@ For example, replace the following ...@@ -128,7 +131,11 @@ For example, replace the following
with with
.. code-block:: python .. testcode:: faster
import numpy
import theano
from theano import function
x = theano.tensor.scalar('x') x = theano.tensor.scalar('x')
f = function([x], x + 1.) f = function([x], x + 1.)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论