提交 70c3b000 authored 作者: Jason Yosinski's avatar Jason Yosinski

minor fixes

上级 a7a6e82d
...@@ -67,7 +67,7 @@ Next we initialize the output as a tensor with same shape and dtype as ``A``, ...@@ -67,7 +67,7 @@ Next we initialize the output as a tensor with same shape and dtype as ``A``,
filled with ones. We give ``A`` to scan as a non sequence parameter and filled with ones. We give ``A`` to scan as a non sequence parameter and
specify the number of steps ``k`` to iterate over our lambda expression. specify the number of steps ``k`` to iterate over our lambda expression.
Scan return a tuples, containing our result (``result``) and a Scan returns a tuple containing our result (``result``) and a
dictionary of updates (empty in this case). Note that the result dictionary of updates (empty in this case). Note that the result
is not a matrix, but a 3D tensor containing the value of ``A**k`` for is not a matrix, but a 3D tensor containing the value of ``A**k`` for
each step. We want the last value (after ``k`` steps) so we compile each step. We want the last value (after ``k`` steps) so we compile
......
...@@ -125,7 +125,7 @@ as it will be useful later on. ...@@ -125,7 +125,7 @@ as it will be useful later on.
Mode Mode
==== ====
Everytime :func:`theano.function <function.function>` is called, Every time :func:`theano.function <function.function>` is called,
the symbolic relationships between the input and output Theano *variables* the symbolic relationships between the input and output Theano *variables*
are optimized and compiled. The way this compilation occurs are optimized and compiled. The way this compilation occurs
is controlled by the value of the ``mode`` parameter. is controlled by the value of the ``mode`` parameter.
...@@ -133,11 +133,11 @@ is controlled by the value of the ``mode`` parameter. ...@@ -133,11 +133,11 @@ is controlled by the value of the ``mode`` parameter.
Theano defines the following modes by name: Theano defines the following modes by name:
- ``'FAST_COMPILE'``: Apply just a few graph optimizations and only use Python implementations. - ``'FAST_COMPILE'``: Apply just a few graph optimizations and only use Python implementations.
- ``'FAST_RUN'``: Apply all optimizations, and use C implementations where possible. - ``'FAST_RUN'``: Apply all optimizations and use C implementations where possible.
- ``'DebugMode``: Verify the correctness of all optimizations, and compare C and Python - ``'DebugMode``: Verify the correctness of all optimizations, and compare C and Python
implementations. This mode can take much longer than the other modes, but can identify implementations. This mode can take much longer than the other modes, but can identify
several kinds of problems. several kinds of problems.
- ``'ProfileMode'``: Same optimization then FAST_RUN, put print some profiling information - ``'ProfileMode'``: Same optimization as FAST_RUN, but print some profiling information
The default mode is typically ``FAST_RUN``, but it can be controlled via The default mode is typically ``FAST_RUN``, but it can be controlled via
the configuration variable :attr:`config.mode`, the configuration variable :attr:`config.mode`,
...@@ -167,7 +167,7 @@ A mode is composed of 2 things: an optimizer and a linker. Some modes, ...@@ -167,7 +167,7 @@ A mode is composed of 2 things: an optimizer and a linker. Some modes,
like ``ProfileMode`` and ``DebugMode``, add logic around the optimizer and like ``ProfileMode`` and ``DebugMode``, add logic around the optimizer and
linker. ``ProfileMode`` and ``DebugMode`` use their own linker. linker. ``ProfileMode`` and ``DebugMode`` use their own linker.
You can select witch linker to use with the Theano flag :attr:`config.linker`. You can select which linker to use with the Theano flag :attr:`config.linker`.
Here is a table to compare the different linkers. Here is a table to compare the different linkers.
============= ========= ================= ========= === ============= ========= ================= ========= ===
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论