Skip to content

Commit

Permalink
fixed the doc in the faq.
Browse files Browse the repository at this point in the history
  • Loading branch information
caglar committed Jun 23, 2015
1 parent 411b212 commit 2ae9e25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/tutorial/debug_faq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ Tips:
of type *float64*.


"Why is my GPU function seems to be slow?"
------------------------------------
"Why does my GPU function seem to be slow?"
------------------------------------------

When you compile a theano function, if you do not get the speedup that you expect over the
CPU performance of the same code. It is oftentimes due to the fact that some Ops might be running
Expand All @@ -310,7 +310,10 @@ options:
if there is a CPU Op in the computational graph.

It is possible to use this mode by providing the flag in THEANO_FLAGS, such as:
``THEANO_FLAGS="float32,assert_no_cpu_op='raise'" python test.py``
``THEANO_FLAGS="float32,device=gpu,assert_no_cpu_op='raise'" python test.py``

But note that this optimization will not catch all the CPU Ops, it might miss some
errors.

.. _faq_monitormode:

Expand Down

0 comments on commit 2ae9e25

Please sign in to comment.