提交 885816fb authored 作者: Reyhane Askari's avatar Reyhane Askari

fixed some doc strings

上级 87a857cf
...@@ -225,6 +225,20 @@ import theano and print the config variable, as in: ...@@ -225,6 +225,20 @@ import theano and print the config variable, as in:
If True, we will print extra scan debug information. If True, we will print extra scan debug information.
.. attribute:: cycle_detection
String value, either ``regular`` or ``fast```
Default: ``regular``
If :attr:`cycle_detection` is set to ``regular``, most inplaces are allowed,
but it is slower. If :attr:`cycle_detection` is set to ``faster``,
less inplaces are allowed, but it makes the compilation faster.
The interaction of which one give the lower peak memory usage is complicated and
not predictable, so if you are close to the peak memory usage, triyng both
could give you a small gain.
.. attribute:: openmp .. attribute:: openmp
Bool value: either ``True`` or ``False`` Bool value: either ``True`` or ``False``
......
...@@ -1477,11 +1477,19 @@ AddConfigVar('compile.wait', ...@@ -1477,11 +1477,19 @@ AddConfigVar('compile.wait',
"""Time to wait before retrying to aquire the compile lock.""", """Time to wait before retrying to aquire the compile lock.""",
IntParam(5, lambda i: i > 0, allow_override=False), IntParam(5, lambda i: i > 0, allow_override=False),
in_c_key=False) in_c_key=False)
"""
If cycle_detection is set to regular, most inplaces are allowed,
but it is slower. If cycle_detection is set to faster,
less inplaces are allowed, but it makes the compilation faster.
The interaction of which one give the lower peak memory usage is complicated and
not predictable, so if you are close to the peak memory usage, triyng both
could give you a small gain.
"""
AddConfigVar('cycle_detection', AddConfigVar('cycle_detection',
"""If true it disables the cycle detection in graph. """If true it disables the cycle detection in graph.
""", """,
EnumStr('topo', 'fast'), EnumStr('regular', 'fast'),
in_c_key=False) in_c_key=False)
......
...@@ -425,7 +425,6 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa ...@@ -425,7 +425,6 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
For now: For now:
- Destroyed variables can have only 1 clients. - Destroyed variables can have only 1 clients.
- Allow sequence of destroy variables.
- Allow view to have multiple clients. - Allow view to have multiple clients.
- Allow sequence of view. - Allow sequence of view.
- But don't allow to destroy view - But don't allow to destroy view
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论