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

testcode for doc/tutorial/gpu_data_convert.txt

上级 88d73dd6
......@@ -36,7 +36,7 @@ Compiling with PyCUDA
You can use PyCUDA to compile CUDA functions that work directly on
CudaNdarrays. Here is an example from the file ``theano/misc/tests/test_pycuda_theano_simple.py``:
.. code-block:: python
.. testcode::
import sys
import numpy
......@@ -78,7 +78,7 @@ Theano Op using a PyCUDA function
You can use a GPU function compiled with PyCUDA in a Theano op:
.. code-block:: python
.. testcode::
import numpy, theano
import theano.misc.pycuda_init
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论