提交 a1030ea7 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed number of iterations in example ouptut (how could it be wrong in the first place?)

上级 d951e9fe
...@@ -99,12 +99,12 @@ As a point of reference, a loop that calls ``numpy.exp(x.value)`` also takes abo ...@@ -99,12 +99,12 @@ As a point of reference, a loop that calls ``numpy.exp(x.value)`` also takes abo
.. code-block:: text .. code-block:: text
$ THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32 python thing.py $ THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32 python thing.py
Looping 100 times took 7.17374897003 seconds Looping 1000 times took 7.17374897003 seconds
Result is [ 1.23178032 1.61879341 1.52278065 ..., 2.20771815 2.29967753 1.62323285] Result is [ 1.23178032 1.61879341 1.52278065 ..., 2.20771815 2.29967753 1.62323285]
$ THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python thing.py $ THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python thing.py
Using gpu device 0: GeForce GTX 285 Using gpu device 0: GeForce GTX 285
Looping 100 times took 0.418929815292 seconds Looping 1000 times took 0.418929815292 seconds
Result is [ 1.23178029 1.61879349 1.52278066 ..., 2.20771813 2.29967761 1.62323296] Result is [ 1.23178029 1.61879349 1.52278066 ..., 2.20771813 2.29967761 1.62323296]
Note that for now GPU operations in Theano require floatX to be float32 (see below also). Note that for now GPU operations in Theano require floatX to be float32 (see below also).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论