提交 67dba25c authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Change default (ALL is too long), update doc.

上级 2e290e35
...@@ -380,7 +380,7 @@ import theano and print the config variable, as in: ...@@ -380,7 +380,7 @@ import theano and print the config variable, as in:
.. attribute:: config.DebugMode.check_preallocated_output .. attribute:: config.DebugMode.check_preallocated_output
Default: ``'ALL'`` Default: ``''``
A list of kinds of preallocated memory to use as output buffers for A list of kinds of preallocated memory to use as output buffers for
each Op's computations, separated by ``:``. Implemented modes are: each Op's computations, separated by ``:``. Implemented modes are:
...@@ -388,6 +388,8 @@ import theano and print the config variable, as in: ...@@ -388,6 +388,8 @@ import theano and print the config variable, as in:
* ``"previous"``: reuse previously-returned memory, * ``"previous"``: reuse previously-returned memory,
* ``"c_contiguous"``: newly-allocated C-contiguous memory, * ``"c_contiguous"``: newly-allocated C-contiguous memory,
* ``"f_contiguous"``: newly-allocated Fortran-contiguous memory, * ``"f_contiguous"``: newly-allocated Fortran-contiguous memory,
* ``"strided"``: non-contiguous memory with various stride patterns,
* ``"wrong_size"``: memory with bigger or smaller dimensions,
* ``"ALL"``: placeholder for all of the above. * ``"ALL"``: placeholder for all of the above.
In order not to test with preallocated memory, use an empty string, ``""``. In order not to test with preallocated memory, use an empty string, ``""``.
......
...@@ -79,7 +79,7 @@ AddConfigVar('DebugMode.check_preallocated_output', ...@@ -79,7 +79,7 @@ AddConfigVar('DebugMode.check_preallocated_output',
'"strided" (positive and negative strides), ' '"strided" (positive and negative strides), '
'"wrong_size" (larger and smaller dimensions), and ' '"wrong_size" (larger and smaller dimensions), and '
'"ALL" (all of the above).'), '"ALL" (all of the above).'),
StrParam('ALL', is_valid=is_valid_check_preallocated_output_param), StrParam('', is_valid=is_valid_check_preallocated_output_param),
in_c_key=False) in_c_key=False)
import logging import logging
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论