提交 710c0169 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

More links in documentation

上级 4e25da0f
...@@ -164,7 +164,7 @@ you to specify properties of your inputs with greater detail. Here we ...@@ -164,7 +164,7 @@ you to specify properties of your inputs with greater detail. Here we
give a default value of 1 for ``y`` by creating an In instance with give a default value of 1 for ``y`` by creating an In instance with
its value field set to 1. its value field set to 1.
Inputs with default values should (must?) follow inputs without default Inputs with default values should follow inputs without default
values. There can be multiple inputs with default values. Defaults can values. There can be multiple inputs with default values. Defaults can
be set positionally or by name, as in standard Python: be set positionally or by name, as in standard Python:
......
...@@ -28,7 +28,7 @@ Predefined types ...@@ -28,7 +28,7 @@ Predefined types
---------------- ----------------
Predefined types are Predefined types are
located in the ``theano.tensor`` package. The name of the types follow located in the :api:`theano.tensor` package. The name of the types follow
a recipe: a recipe:
``<dtype><dimensionality>`` ``<dtype><dimensionality>``
...@@ -59,12 +59,14 @@ matrix [m, n] No No ...@@ -59,12 +59,14 @@ matrix [m, n] No No
====== ====== ========================================== ============================================= ====== ====== ========================================== =============================================
So, if you want a row of 32-bit floats, it is available So, if you want a row of 32-bit floats, it is available
as ``theano.tensor.frow``. If you want a matrix of unsigned as :api:`theano.tensor.frow <theano.tensor.basic.frow>`.
32-bit integers it is available as ``theano.tensor.imatrix``. If you want a matrix of unsigned 32-bit integers it is available as
:api:`theano.tensor.imatrix <theano.tensor.basic.imatrix>`.
Each of the types described above can be constructed by two methods: Each of the types described above can be constructed by two methods:
a singular version (e.g., ``dmatrix``) and a plural version a singular version (e.g., :api:`dmatrix <theano.tensor.basic.dmatrix>`)
(``dmatrices``). When called, the singular version takes a single and a plural version (:api:`dmatrices <theano.tensor.dmatrices>`).
When called, the singular version takes a single
argument which is the name of the :term:`Variable` we want to make and it argument which is the name of the :term:`Variable` we want to make and it
makes a single Variable of that type. The plural version can either take makes a single Variable of that type. The plural version can either take
an integer or several strings. If an integer is provided, the method an integer or several strings. If an integer is provided, the method
...@@ -89,10 +91,11 @@ Custom tensor types ...@@ -89,10 +91,11 @@ Custom tensor types
If you wish to use a type of tensor which is not already available here If you wish to use a type of tensor which is not already available here
(for example, a 3D tensor) you can build an appropriate type using (for example, a 3D tensor) you can build an appropriate type using
``theano.tensor.TensorType``. The first argument you pass is the ``dtype`` :api:`theano.tensor.TensorType <theano.tensor.basic.TensorType>`.
and the second is the ``broadcastable pattern``. The first argument you pass is the `dtype` and the second is the
`broadcastable pattern`.
Where ``dtype`` is one of: Where `dtype` is one of:
=========== ================ ================= =========== ================ =================
dtype domain bits dtype domain bits
...@@ -113,9 +116,10 @@ complex128 complex 128 (two float64) ...@@ -113,9 +116,10 @@ complex128 complex 128 (two float64)
.. note:: .. note::
Even though ``theano.tensor`` does not define any type Even though :api:`theano.tensor` does not define any type
using ``complex`` dtypes (``complex64`` or ``complex128``), using ``complex`` dtypes (``complex64`` or ``complex128``),
you can define them explicitly with ``TensorType`` (see example you can define them explicitly with
:api:`TensorType <theano.tensor.basic.TensorType>` (see example
below). However, few operations are fully supported for complex below). However, few operations are fully supported for complex
types: as of version 0.1, only elementary operations (``+-*/``) types: as of version 0.1, only elementary operations (``+-*/``)
have C implementations. Additionally, complex types have received have C implementations. Additionally, complex types have received
...@@ -169,5 +173,5 @@ bytes, we would do: ...@@ -169,5 +173,5 @@ bytes, we would do:
Ops Ops
=== ===
There are a lot of operations available in the ``theano.tensor`` package. There are a lot of operations available in the :api:`theano.tensor` package.
See :ref:`oplist`. See :ref:`oplist`.
...@@ -91,7 +91,7 @@ Glossary of terminology ...@@ -91,7 +91,7 @@ Glossary of terminology
WRITEME WRITEME
type type
WRITEME See :ref:`tensortypes`
Variable Variable
A :ref:`variable` is the main data structure you work with when A :ref:`variable` is the main data structure you work with when
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论