提交 8a855c90 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 5a0b9a89
...@@ -120,10 +120,10 @@ del dummy_stdin ...@@ -120,10 +120,10 @@ del dummy_stdin
#Keep the default optimizer the same as the one for the mode FAST_RUN #Keep the default optimizer the same as the one for the mode FAST_RUN
AddConfigVar('allow_gc', AddConfigVar('allow_gc',
"Do we default to delete intermediate results during Theano" "Do we default to delete intermediate results during Theano"
" function call? Doing so lower the memory requirement, but ask" " function calls? Doing so lowers the memory requirement, but"
" that we reallocate memory at the next function call." " asks that we reallocate memory at the next function call."
" This is implemented for the default linker, but not work all" " This is implemented for the default linker, but may not work"
" linker", " for all linkers.",
BoolParam(True), BoolParam(True),
in_c_key=False) in_c_key=False)
......
...@@ -295,11 +295,10 @@ class RunOnce(theano.Op): ...@@ -295,11 +295,10 @@ class RunOnce(theano.Op):
def test_vm_gc(): def test_vm_gc():
"""This already caused a bug in the trunk of Theano. """This already caused a bug in the trunk of Theano.
The bug was introduced in the trunk the July 5, 2012 and fixed the The bug was introduced in the trunk on July 5th, 2012 and fixed on
July 30 July 30th.
""" """
pass
x = theano.tensor.vector() x = theano.tensor.vector()
p = RunOnce()(x) p = RunOnce()(x)
mode = theano.Mode(linker=theano.gof.vm.VM_Linker(lazy=True)) mode = theano.Mode(linker=theano.gof.vm.VM_Linker(lazy=True))
......
...@@ -40,7 +40,7 @@ def filter_vm_lazy(val): ...@@ -40,7 +40,7 @@ def filter_vm_lazy(val):
AddConfigVar('vm.lazy', AddConfigVar('vm.lazy',
"Useful only for the vm linkers. When lazy is None," "Useful only for the vm linkers. When lazy is None,"
" auto detect if lazy evaluation is needed and use the apropriate" " auto detect if lazy evaluation is needed and use the apropriate"
" version. If lazy it True/False, force the version used between" " version. If lazy is True/False, force the version used between"
" Loop/LoopGC and Stack.", " Loop/LoopGC and Stack.",
ConfigParam('None', filter_vm_lazy)) ConfigParam('None', filter_vm_lazy))
...@@ -396,7 +396,7 @@ class Stack(VM): ...@@ -396,7 +396,7 @@ class Stack(VM):
#current_apply is still in the #current_apply is still in the
#stack, this will cause it to be #stack, this will cause it to be
#recomputed! This can cause wrong value #recomputed! This can cause wrong value
#with some combiation of inplace op. #with some combination of inplace op.
compute_map[i][0] = 2 compute_map[i][0] = 2
if (config.warn.vm_gc_bug and if (config.warn.vm_gc_bug and
current_apply in apply_stack and current_apply in apply_stack and
...@@ -471,7 +471,7 @@ class Stack(VM): ...@@ -471,7 +471,7 @@ class Stack(VM):
if empty_storage_map: if empty_storage_map:
storage_map[i][0] = None storage_map[i][0] = None
#See the not lazy gc code for explanations #See the not lazy gc code for explanations
#Of compute_map change #of compute_map change
compute_map[i][0] = 2 compute_map[i][0] = 2
# Hacky coarse gc final pass # Hacky coarse gc final pass
...@@ -513,7 +513,7 @@ class VM_Linker(link.LocalLinker): ...@@ -513,7 +513,7 @@ class VM_Linker(link.LocalLinker):
allow_gc - force the virtual machine to clean up unnecessary allow_gc - force the virtual machine to clean up unnecessary
references, in order to allow garbage collection on references, in order to allow garbage collection on
intermediate values during computation of a function. intermediate values during computation of a function.
If None use as default the Theano flag allow_gc value. If None use as default the value of the Theano flag allow_gc.
use_cloop - use the C-based virtual machine if possible use_cloop - use the C-based virtual machine if possible
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论