提交 f80dd2c8 authored 作者: Joseph Turian's avatar Joseph Turian

Fixed more docgen errors

上级 f7910848
...@@ -4,12 +4,20 @@ To install the package, use: ...@@ -4,12 +4,20 @@ To install the package, use:
python setup.py test python setup.py test
python setup.py install python setup.py install
For the documentation, see the project website: For the documentation, see the project website:
http://pylearn.org/theano/ http://pylearn.org/theano/
This may be easier than building the documentation yourself, because we have We recommend you look at the documentation on the website, since it
custom ReST hooks that are used. will be more current than the documentation included with the package.
If you really wish to build the documentation yourself, you will need
epydoc and sphinx. Issue the following command:
python ./doc/scripts/docgen.py
Documentation is built into html/
The PDF of the documentation is html/theano.pdf
DIRECTORY LAYOUT DIRECTORY LAYOUT
......
.. _functioninterface:
==================
Function Interface
==================
This section details the various structures used to make ``function``
work. You might want to read the sections about :ref:`compilation` and
:ref:`optimization`.
.. index::
single: Mode
.. _mode:
----
Mode
----
WRITEME
.. index::
single: function
.. _function:
--------
function
--------
WRITEME
.. index::
single: FunctionMaker
.. _functionmaker:
-------------
FunctionMaker
-------------
WRITEME
...@@ -183,7 +183,7 @@ might not be such a good idea. ...@@ -183,7 +183,7 @@ might not be such a good idea.
Here is a list of useful functions, as defined by TestCase: Here is a list of useful functions, as defined by TestCase:
* checking the state of boolean variables: assert_, failUnless, assertTrue, failIf, assertFalse * checking the state of boolean variables: assert, failUnless, assertTrue, failIf, assertFalse
* checking for (in)equality constraints: assertEqual, failUnlessEqual, assertNotEqual, failIfEqual * checking for (in)equality constraints: assertEqual, failUnlessEqual, assertNotEqual, failIfEqual
* checking for (in)equality constraints up to a given precision (very useful in theano): assertAlmostEqual, failUnlessAlmostEqual, assertNotAlmostEqual, failIfAlmostEqual * checking for (in)equality constraints up to a given precision (very useful in theano): assertAlmostEqual, failUnlessAlmostEqual, assertNotAlmostEqual, failIfAlmostEqual
......
==================
Example 1 - double
==================
WRITEME
.. toctree::
type
op
ctype
cop
=====================
Example 2 - cons_cell
=====================
.. toctree::
type
...@@ -137,7 +137,7 @@ Automatic wrapping ...@@ -137,7 +137,7 @@ Automatic wrapping
All nodes in the graph must be instances of ``Apply`` or ``Result``, but All nodes in the graph must be instances of ``Apply`` or ``Result``, but
``<Op subclass>.make_node()`` typically wraps constants to satisfy those ``<Op subclass>.make_node()`` typically wraps constants to satisfy those
constraints. For example, the :ref:`tensor.add` op instance is written constraints. For example, the :api:`tensor.add` op instance is written
so that: so that:
.. code-block:: python .. code-block:: python
......
...@@ -17,22 +17,20 @@ them using a Python implementation and then we will add a C ...@@ -17,22 +17,20 @@ them using a Python implementation and then we will add a C
implementation. implementation.
This tutorial should be of most use to users who want to extend Theano This tutorial should be of most use to users who want to extend Theano
with custom types and operations related to these types. Users who with custom types and operations related to these types.
want to extend Theano with new operations on tensors should check It is a good idea to read this tutorial as well since it provides
:ref:`tensoroptutorial`, but it is a good idea to read this tutorial grounding for fundamental Theano concepts.
as well since it probably provides better grounding for the many
concepts at work here.
.. toctree:: .. toctree::
theano_vs_python theano_vs_python
graphstructures graphstructures
ex1/type type
ex1/op op
inplace inplace
ex1/ctype ctype
ex1/cop cop
optimization optimization
tips tips
......
...@@ -79,7 +79,8 @@ An Op (:api:`gof.op.Op`) is any object which defines the following methods: ...@@ -79,7 +79,8 @@ An Op (:api:`gof.op.Op`) is any object which defines the following methods:
A, are presented again, then outputs equal to B must be returned again. A, are presented again, then outputs equal to B must be returned again.
- You must be careful about aliasing outputs to inputs, and making - You must be careful about aliasing outputs to inputs, and making
modifications to any of the inputs. See `Views and inplace operations`_ modifications to any of the inputs. See `Views and inplace operations
<views_and_inplace>`_
before writing a ``perform`` implementation that does either of these before writing a ``perform`` implementation that does either of these
things. things.
......
...@@ -122,7 +122,7 @@ array(10.0) ...@@ -122,7 +122,7 @@ array(10.0)
Advanced: Sharing Storage Between Functions Advanced: Sharing Storage Between Functions
------------------------------------------- -------------------------------------------
``value`` can be a :api:`theano.gof.Container` as well as a literal. ``value`` can be a :api:`theano.gof.link.Container` as well as a literal.
This permits linking a value of a Variable in one function to the value of a Variable in another function. This permits linking a value of a Variable in one function to the value of a Variable in another function.
By using a ``Container`` as a value we can implement shared variables between functions. By using a ``Container`` as a value we can implement shared variables between functions.
...@@ -164,7 +164,7 @@ The following restrictions apply to the inputs to ``theano.function``: ...@@ -164,7 +164,7 @@ The following restrictions apply to the inputs to ``theano.function``:
exception?**] exception?**]
- Two ``In`` instances may not name the same Variable. I.e. you cannot - Two ``In`` instances may not name the same Variable. I.e. you cannot
give the same parameter multiple times. give the same parameter multiple times.
If no name is specified explicitly for an In instance, then its name If no name is specified explicitly for an In instance, then its name
will be taken from the Variable's name. Note that this feature can cause will be taken from the Variable's name. Note that this feature can cause
......
...@@ -8,9 +8,10 @@ efficiently evaluate mathematical expressions involving multi-dimensional ...@@ -8,9 +8,10 @@ efficiently evaluate mathematical expressions involving multi-dimensional
arrays. Using Theano, it is not uncommon to see speed improvements of arrays. Using Theano, it is not uncommon to see speed improvements of
ten-fold over using pure NumPy. ten-fold over using pure NumPy.
The latest release is version `0.1 <downloads/Theano-0.1.tar.gz>`. The latest release is version `0.1
You can download the `PDF documentation <theano.pdf>`, rather than reading it <http://pylearn.org/theano/downloads/Theano-0.1.tar.gz>`.
online. You can download the latest `PDF documentation
<http://pylearn.org/theano/theano.pdf>`, rather than reading it online.
Choose your own adventure: Choose your own adventure:
......
...@@ -148,12 +148,21 @@ territory and inform us of your progress! ...@@ -148,12 +148,21 @@ territory and inform us of your progress!
Generating the documentation Generating the documentation
---------------------------- ----------------------------
Don't build the documentation, just find it on the web. You can read the latest HTML documentation `here
You can read the HTML documentation `here
<http://pylearn.org/theano/contents.html>`. <http://pylearn.org/theano/contents.html>`.
You can download the PDF documentation `here
<htt
You can download the latest PDF documentation `here You can download the latest PDF documentation `here
<http://pylearn.org/theano/theano.pdf`. <http://pylearn.org/theano/theano.pdf`.
We recommend you look at the documentation on the website, since it
will be more current than the documentation included with the package.
If you really wish to build the documentation yourself, you will need
epydoc and sphinx, as described above. Issue the following command::
python ./doc/scripts/docgen.py
Documentation is built into ``html/``.
The PDF of the documentation is ``html/theano.pdf``.
.. _theano-users: http://groups.google.com/group/theano-users?pli=1 .. _theano-users: http://groups.google.com/group/theano-users?pli=1
...@@ -13,6 +13,7 @@ speed improvements over basic numpy by using theano. ...@@ -13,6 +13,7 @@ speed improvements over basic numpy by using theano.
With a little work, Theano could also implement more sophisticated With a little work, Theano could also implement more sophisticated
optimizations: optimizations:
* automatic ordering of matrix multiplications * automatic ordering of matrix multiplications
* profile-based memory layout decisions (e.g. row-major vs. col-major) * profile-based memory layout decisions (e.g. row-major vs. col-major)
* gcc intrinsics to use MMX, SSE2 parallelism for faster element-wise arithmetic * gcc intrinsics to use MMX, SSE2 parallelism for faster element-wise arithmetic
......
...@@ -127,7 +127,8 @@ Guillaume can you make sure to hit these points: ...@@ -127,7 +127,8 @@ Guillaume can you make sure to hit these points:
nosetests has ``failUnlessRaises`` nosetests has ``failUnlessRaises``
* Convention is that all test files must start with test_, not _test_, so rename all that use the old convention? * Convention is that all test files must start with ``test_``, not
``_test_``, so rename all that use the old convention?
======================================================= =======================================================
How to use the PrintOp How to use the PrintOp
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论