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

testcode for doc/install_windows.txt

上级 b0cf8f3a
...@@ -405,7 +405,7 @@ compile C code for CPU execution. ...@@ -405,7 +405,7 @@ compile C code for CPU execution.
Create a test file containing: Create a test file containing:
.. code-block:: python .. testcode::
import numpy as np import numpy as np
import time import time
...@@ -423,6 +423,18 @@ Create a test file containing: ...@@ -423,6 +423,18 @@ Create a test file containing:
print "NP time: %f[s], theano time: %f[s] (times should be close when run on CPU!)" %( print "NP time: %f[s], theano time: %f[s] (times should be close when run on CPU!)" %(
np_end-np_start, t_end-t_start) np_end-np_start, t_end-t_start)
print "Result difference: %f" % (np.abs(AB-tAB).max(), ) print "Result difference: %f" % (np.abs(AB-tAB).max(), )
.. testoutput::
:hide:
:options: +ELLIPSIS
NP time: ...[s], theano time: ...[s] (times should be close when run on CPU!)
Result difference: ...
.. code-block:: none
NP time: 1.480863[s], theano time: 1.475381[s] (times should be close when run on CPU!)
Result difference: 0.000000
Then run it. It should execute without problems and the Theano function Then run it. It should execute without problems and the Theano function
should run at a speed similar to the regular NumPy should run at a speed similar to the regular NumPy
...@@ -573,7 +585,7 @@ follows: ...@@ -573,7 +585,7 @@ follows:
This setting can also be changed in Python for testing purpose (in which This setting can also be changed in Python for testing purpose (in which
case it will remain only for the duration of your Python session): case it will remain only for the duration of your Python session):
.. code-block:: python .. testcode::
theano.config.blas.ldflags = "-LX:\\YYY\\YYY -lopenblas" theano.config.blas.ldflags = "-LX:\\YYY\\YYY -lopenblas"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论