提交 efe503b0 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Document that the value of some flags cannot be changed once set.

上级 ed02ec70
...@@ -113,6 +113,8 @@ import theano and print the config variable, as in: ...@@ -113,6 +113,8 @@ import theano and print the config variable, as in:
to use a specific device. If we are not able to use the GPU, either we fall back to use a specific device. If we are not able to use the GPU, either we fall back
on the CPU, or an error is raised, depending on the :attr:`force_device` flag. on the CPU, or an error is raised, depending on the :attr:`force_device` flag.
This flag's value cannot be modified during the program execution.
.. attribute:: force_device .. attribute:: force_device
Bool value: either ``True`` or ``False`` Bool value: either ``True`` or ``False``
...@@ -122,6 +124,8 @@ import theano and print the config variable, as in: ...@@ -122,6 +124,8 @@ import theano and print the config variable, as in:
If ``True``, we raise an error if we cannot use the specified :attr:`device`. If ``True``, we raise an error if we cannot use the specified :attr:`device`.
If ``False``, we fall back to the CPU. If ``False``, we fall back to the CPU.
This flag's value cannot be modified during the program execution.
.. attribute:: init_gpu_device .. attribute:: init_gpu_device
String value: either ``''``, ``'gpu'``, ``'gpu0'``, ``'gpu1'``, ``'gpu2'``, String value: either ``''``, ``'gpu'``, ``'gpu0'``, ``'gpu1'``, ``'gpu2'``,
...@@ -136,6 +140,8 @@ import theano and print the config variable, as in: ...@@ -136,6 +140,8 @@ import theano and print the config variable, as in:
This flag is useful to run GPU-specific tests on a particular GPU, instead This flag is useful to run GPU-specific tests on a particular GPU, instead
of using the default one. of using the default one.
This flag's value cannot be modified during the program execution.
.. attribute:: floatX .. attribute:: floatX
String value: either 'float64' or 'float32'. String value: either 'float64' or 'float32'.
...@@ -210,6 +216,8 @@ import theano and print the config variable, as in: ...@@ -210,6 +216,8 @@ import theano and print the config variable, as in:
It is also recommended you put this into your .theanorc, so this setting It is also recommended you put this into your .theanorc, so this setting
will always be used. will always be used.
This flag's value cannot be modified during the program execution.
.. attribute:: home .. attribute:: home
Default: env-variable $HOME Default: env-variable $HOME
...@@ -222,6 +230,8 @@ import theano and print the config variable, as in: ...@@ -222,6 +230,8 @@ import theano and print the config variable, as in:
This directory stores the architecture-dependent compilation directories. This directory stores the architecture-dependent compilation directories.
This flag's value cannot be modified during the program execution.
.. attribute:: compiledir .. attribute:: compiledir
Default: $HOME/.theano/<arch-identifier> Default: $HOME/.theano/<arch-identifier>
...@@ -229,6 +239,8 @@ import theano and print the config variable, as in: ...@@ -229,6 +239,8 @@ import theano and print the config variable, as in:
This directory stores dynamically-compiled modules for a particular This directory stores dynamically-compiled modules for a particular
architecture. architecture.
This flag's value cannot be modified during the program execution.
.. attribute:: config.blas.ldflags .. attribute:: config.blas.ldflags
Default: '-lblas' Default: '-lblas'
...@@ -258,6 +270,8 @@ import theano and print the config variable, as in: ...@@ -258,6 +270,8 @@ import theano and print the config variable, as in:
use the flags: optimizer_excluding:inplace_opt, where use the flags: optimizer_excluding:inplace_opt, where
inplace_opt is the name of that optimization. inplace_opt is the name of that optimization.
This flag's value cannot be modified during the program execution.
.. attribute:: optimizer_including .. attribute:: optimizer_including
Default: "" Default: ""
...@@ -265,6 +279,8 @@ import theano and print the config variable, as in: ...@@ -265,6 +279,8 @@ import theano and print the config variable, as in:
A list of optimizer tags that we want included in the default Mode. A list of optimizer tags that we want included in the default Mode.
If multiple tags, separate them by ':'. If multiple tags, separate them by ':'.
This flag's value cannot be modified during the program execution.
.. attribute:: optimizer_requiring .. attribute:: optimizer_requiring
Default: "" Default: ""
...@@ -272,6 +288,8 @@ import theano and print the config variable, as in: ...@@ -272,6 +288,8 @@ import theano and print the config variable, as in:
A list of optimizer tags that we require for optimizer in the default Mode. A list of optimizer tags that we require for optimizer in the default Mode.
If multiple tags, separate them by ':'. If multiple tags, separate them by ':'.
This flag's value cannot be modified during the program execution.
.. attribute:: nocleanup .. attribute:: nocleanup
Bool value: either True or False Bool value: either True or False
...@@ -282,4 +300,4 @@ import theano and print the config variable, as in: ...@@ -282,4 +300,4 @@ import theano and print the config variable, as in:
This mean it remove file that he tried to compile but failed. This mean it remove file that he tried to compile but failed.
Set to True to keep the source file that failed to compile to Set to True to keep the source file that failed to compile to
debug them. debug them.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论