提交 6ab5e670 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fiddle with formatting to get it looking ok and make links work.

上级 50eff811
...@@ -191,12 +191,14 @@ Dealing with float16 ...@@ -191,12 +191,14 @@ Dealing with float16
To support limited-precision storage in a kernel you have to be To support limited-precision storage in a kernel you have to be
careful to load values properly, declare working memory in float32 and careful to load values properly, declare working memory in float32 and
write results properly. To help with that some functions have been write results properly. To help with that some functions have been
declared in `theano.gpuarray.fp16_help`. declared in :mod:`theano.gpuarray.fp16_help`.
To load the inputs you should wrap the read with the function returned To load the inputs you should wrap the read with the function returned
by :function:`load_w`. Similarly writes should be wrapped in the by :func:`load_w() <theano.gpuarray.fp16_help.load_w>`. Similarly writes
function returned by :function:`write_w`. Finally working data should should be wrapped in the function returned by :func:`write_w()
have the type returned by :function:`work_dtype`. <theano.gpuarray.fp16_help.write_w>`. Finally working data should
have the type returned by :func:`work_dtype()
<theano.gpuarray.fp16_help.work_dtype>`.
Here is a +1 kernel that is not ready to deal with float16 input:: Here is a +1 kernel that is not ready to deal with float16 input::
......
...@@ -91,8 +91,8 @@ designated **inner inputs** and **inner outputs**, respectively. ...@@ -91,8 +91,8 @@ designated **inner inputs** and **inner outputs**, respectively.
Scan variables Scan variables
============== ==============
The following are the different types of variables that Scan has the capacity to The following are the different types of variables that Scan has the
handle, along with their various caracteristics. capacity to handle, along with their various caracteristics.
**Sequence** : A sequence is a Theano variable which Scan will iterate **Sequence** : A sequence is a Theano variable which Scan will iterate
over and give sub-elements to its inner function as input. A sequence over and give sub-elements to its inner function as input. A sequence
...@@ -103,10 +103,10 @@ of the ``theano.scan()`` function. ...@@ -103,10 +103,10 @@ of the ``theano.scan()`` function.
**Non-sequences** : A non-sequence is a Theano variable which Scan **Non-sequences** : A non-sequence is a Theano variable which Scan
*will provide as-is* to its inner function. Like a sequence, a *will provide as-is* to its inner function. Like a sequence, a
*non-sequence has no associated output. For a non-sequence variable non-sequence has no associated output. For a non-sequence variable
*``X``, at timestep ``t``, the inner function will receive as input ``X``, at timestep ``t``, the inner function will receive as input
*the variable ``X``. These variables are used through the argument the variable ``X``. These variables are used through the argument
*``non_sequences`` of the ``theano.scan()`` function. ``non_sequences`` of the ``theano.scan()`` function.
**Nitsot (no input tap, single output tap)** : A nitsot is an output **Nitsot (no input tap, single output tap)** : A nitsot is an output
variable of the inner function that is not fed back as an input to the variable of the inner function that is not fed back as an input to the
......
...@@ -135,7 +135,6 @@ Roughly in order of what you'll want to check out: ...@@ -135,7 +135,6 @@ Roughly in order of what you'll want to check out:
* :ref:`optimizations` -- Guide to Theano's graph optimizations. * :ref:`optimizations` -- Guide to Theano's graph optimizations.
* :ref:`extending` -- Learn to add a Type, Op, or graph optimization. * :ref:`extending` -- Learn to add a Type, Op, or graph optimization.
* :ref:`dev_start_guide` -- How to contribute code to Theano. * :ref:`dev_start_guide` -- How to contribute code to Theano.
* :ref:`developer` -- Primarily of interest to developers of Theano
* :ref:`internal` -- How to maintain Theano and more... * :ref:`internal` -- How to maintain Theano and more...
* :ref:`release` -- How our release should work. * :ref:`release` -- How our release should work.
* :ref:`acknowledgement` -- What we took from other projects. * :ref:`acknowledgement` -- What we took from other projects.
......
...@@ -15,3 +15,9 @@ Kernel generation ...@@ -15,3 +15,9 @@ Kernel generation
.. automodule:: theano.gpuarray.kernel_codegen .. automodule:: theano.gpuarray.kernel_codegen
:members: :members:
float16
-------
.. automodule:: theano.gpuarray.fp16_help
:members:
.. _libdoc_gpuarray_fft: .. _libdoc_gpuarray_fft:
============================================== =====================================================
:mod:`gpuarray.fft` -- Fast Fourier Transforms :mod:`theano.gpuarray.fft` -- Fast Fourier Transforms
============================================== =====================================================
Performs Fast Fourier Transforms (FFT) on the GPU. Performs Fast Fourier Transforms (FFT) on the GPU.
......
.. _libdoc_gpuarray_type: .. _libdoc_gpuarray_type:
=================================================== ===================================================
:mod:`gpuarray.type` -- Type classes :mod:`theano.gpuarray.type` -- Type classes
=================================================== ===================================================
.. automodule:: theano.gpuarray.type .. automodule:: theano.gpuarray.type
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论