提交 dbb03761 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2325 from abergeron/doc

Document nvcc.fastmath and fix cxx description.
.. _libdoc_config: .. _libdoc_config:
======================================= =======================================
:mod:`config` -- Theano Configuration :mod:`config` -- Theano Configuration
======================================= =======================================
.. module:: config .. module:: config
...@@ -493,19 +493,29 @@ import theano and print the config variable, as in: ...@@ -493,19 +493,29 @@ import theano and print the config variable, as in:
.. attribute:: cxx .. attribute:: cxx
Default: Full path to g++ if g++ is present. Empty string otherwise.
Default: 'g++' if g++ is present. Empty string otherwise. Indicates which C++ compiler to use. If empty, no C++ code is
compiled. Theano automatically detects whether g++ is present and
disables C++ compilation when it is not. On darwin systems (Mac
OS X), it preferably looks for clang++ and uses that if available.
Indicates which C++ compiler to use. If empty, no C++ code is compiled. We print a warning if we detect that no compiler is present. It is
Theano automatically detects whether g++ is present and disables
C++ compilation when it is not.
We print a warning if we detect that g++ is not present. It is
recommended to run with C++ compilation as Theano will be much recommended to run with C++ compilation as Theano will be much
slower otherwise. slower otherwise.
Currently only g++ is supported, but supporting other compilers should This can be any compiler binary (full path or not) but things may
not be too difficult. break if the interface if not g++-compatible to some degree.
.. attribute:: config.nvcc.fastmath
Default: False
If true, this will enable fastmath (`--use_fast_math
<http://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#options-for-steering-cuda-compilation>`_)
mode for compiled cuda code which makes div and sqrt faster at the
cost of precision. This also disables support for denormal
numbers.
.. attribute:: optimizer_excluding .. attribute:: optimizer_excluding
...@@ -705,7 +715,7 @@ import theano and print the config variable, as in: ...@@ -705,7 +715,7 @@ import theano and print the config variable, as in:
debugging mechanism, where Theano executes the graph on-the-fly, as it is debugging mechanism, where Theano executes the graph on-the-fly, as it is
being built. This allows the user to spot errors early on (such as being built. This allows the user to spot errors early on (such as
dimension mis-match), **before** optimizations are applied. dimension mis-match), **before** optimizations are applied.
Theano will execute the graph using the Constants and/or shared variables Theano will execute the graph using the Constants and/or shared variables
provided by the user. Purely symbolic variables (e.g. x = T.dmatrix()) can be provided by the user. Purely symbolic variables (e.g. x = T.dmatrix()) can be
augmented with test values, by writing to their ``'tag.test_value'`` augmented with test values, by writing to their ``'tag.test_value'``
...@@ -718,7 +728,7 @@ import theano and print the config variable, as in: ...@@ -718,7 +728,7 @@ import theano and print the config variable, as in:
- ``'warn'`` will raise a UserWarning and skip the debug mechanism for - ``'warn'`` will raise a UserWarning and skip the debug mechanism for
this Op this Op
- ``'raise'`` will raise an Exception - ``'raise'`` will raise an Exception
.. attribute:: compute_test_value_opt .. attribute:: compute_test_value_opt
As ``compute_test_value``, but it is the value used during Theano As ``compute_test_value``, but it is the value used during Theano
...@@ -729,18 +739,18 @@ import theano and print the config variable, as in: ...@@ -729,18 +739,18 @@ import theano and print the config variable, as in:
Bool value, default: True Bool value, default: True
Theano users can use the standard python pickle tools to save a compiled Theano users can use the standard python pickle tools to save a compiled
theano function. When pickling, both graph before and after the optimization theano function. When pickling, both graph before and after the optimization
are saved, including shared variables. When set to True, the graph is are saved, including shared variables. When set to True, the graph is
reoptimized when being unpickled. Otherwise, skip the graph optimization and reoptimized when being unpickled. Otherwise, skip the graph optimization and
use directly the optimized graph. use directly the optimized graph.
.. attribute:: exception_verbosity .. attribute:: exception_verbosity
String Value: ``'low'``, ``'high'``. String Value: ``'low'``, ``'high'``.
Default: ``'low'`` Default: ``'low'``
If ``'low'``, the text of exceptions will generally refer to apply nodes If ``'low'``, the text of exceptions will generally refer to apply nodes
with short names such as ``'Elemwise{add_no_inplace}'``. If ``'high'``, with short names such as ``'Elemwise{add_no_inplace}'``. If ``'high'``,
some exceptions will also refer to apply nodes with long descriptions like: some exceptions will also refer to apply nodes with long descriptions like:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论