提交 4b1424ec authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Made it easier to see how to get the full list of config attributes, also fixed…

Made it easier to see how to get the full list of config attributes, also fixed display issue with some attributes not being prefixed with config
上级 fba27d55
...@@ -88,18 +88,17 @@ Environment Variables ...@@ -88,18 +88,17 @@ Environment Variables
For example, to override system-wide settings with personal ones, For example, to override system-wide settings with personal ones,
set ``THEANORC=/etc/theanorc:~/.theanorc``. set ``THEANORC=/etc/theanorc:~/.theanorc``.
The rest of this page describes some of the more common and important flags Config Attributes
that you might want to use. For the complete list (including documentation), =====================
The list below describes some of the more common and important flags
that you might want to use. For the complete list (including documentation),
import theano and print the config variable, as in: import theano and print the config variable, as in:
.. code-block:: bash .. code-block:: bash
python -c 'import theano; print theano.config' | less python -c 'import theano; print theano.config' | less
Config Attributes
=====================
.. attribute:: device .. attribute:: device
String value: either 'cpu', 'gpu', 'gpu0', 'gpu1', 'gpu2', or 'gpu3' String value: either 'cpu', 'gpu', 'gpu0', 'gpu1', 'gpu2', or 'gpu3'
...@@ -176,7 +175,7 @@ Config Attributes ...@@ -176,7 +175,7 @@ Config Attributes
When the mode is Mode, it sets the default optimizer used. When the mode is Mode, it sets the default optimizer used.
.. attribute:: warn.ignore_bug_before .. attribute:: config.warn.ignore_bug_before
String value: 'None', 'all', '0.3' String value: 'None', 'all', '0.3'
...@@ -223,19 +222,19 @@ Config Attributes ...@@ -223,19 +222,19 @@ Config Attributes
This directory stores dynamically-compiled modules for a particular This directory stores dynamically-compiled modules for a particular
architecture. architecture.
.. attribute:: blas.ldflags .. attribute:: config.blas.ldflags
Default: '-lblas' Default: '-lblas'
Link arguments to link against a (Fortran) level-3 blas implementation. Link arguments to link against a (Fortran) level-3 blas implementation.
.. attribute:: cuda.root .. attribute:: config.cuda.root
Default: $CUDA_ROOT or failing that, "/usr/local/cuda" Default: $CUDA_ROOT or failing that, "/usr/local/cuda"
A directory with bin/, lib/, include/ folders containing cuda utilities. A directory with bin/, lib/, include/ folders containing cuda utilities.
.. attribute:: gcc.cxxflags .. attribute:: config.gcc.cxxflags
Default: "" Default: ""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论