提交 159a2ab9 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 cf622c71
...@@ -451,7 +451,7 @@ class Stack(VM): ...@@ -451,7 +451,7 @@ class Stack(VM):
if not hasattr(o[0], 'size'): if not hasattr(o[0], 'size'):
size.append(-1) size.append(-1)
continue continue
s=o[0].size s = o[0].size
dtype = str(o[0].dtype) dtype = str(o[0].dtype)
dtype2 = dtype[-2:] dtype2 = dtype[-2:]
# KeyError here: couldn't determine the # KeyError here: couldn't determine the
...@@ -540,8 +540,8 @@ class VM_Linker(link.LocalLinker): ...@@ -540,8 +540,8 @@ class VM_Linker(link.LocalLinker):
def accept(self, fgraph, no_recycling=None): def accept(self, fgraph, no_recycling=None):
""" """
:param fgraph: a PerformLinker can have accepted one FunctionGraph instance :param fgraph: a PerformLinker can have accepted one FunctionGraph
at a time. instance at a time.
:param no_recycling: WRITEME :param no_recycling: WRITEME
...@@ -661,7 +661,7 @@ class VM_Linker(link.LocalLinker): ...@@ -661,7 +661,7 @@ class VM_Linker(link.LocalLinker):
assert type(compute_map_list[0]) is list assert type(compute_map_list[0]) is list
if self.allow_gc: if self.allow_gc:
dependency_map=self.compute_gc_dependencies(storage_map) dependency_map = self.compute_gc_dependencies(storage_map)
dependency_map_list = [ dependency_map_list = [
[vars_idx[d] for d in dependency_map[vars_idx_inv[i]]] [vars_idx[d] for d in dependency_map[vars_idx_inv[i]]]
for i in xrange(len(vars_idx_inv))] for i in xrange(len(vars_idx_inv))]
...@@ -777,8 +777,8 @@ class VM_Linker(link.LocalLinker): ...@@ -777,8 +777,8 @@ class VM_Linker(link.LocalLinker):
return vm return vm
def make_all(self, profiler=None, input_storage=None, def make_all(self, profiler=None, input_storage=None,
output_storage = None, output_storage=None,
): ):
fgraph = self.fgraph fgraph = self.fgraph
order = list(fgraph.toposort()) order = list(fgraph.toposort())
no_recycling = self.no_recycling no_recycling = self.no_recycling
...@@ -819,8 +819,8 @@ class VM_Linker(link.LocalLinker): ...@@ -819,8 +819,8 @@ class VM_Linker(link.LocalLinker):
return (vm, return (vm,
[link.Container(input, storage) [link.Container(input, storage)
for input, storage in zip(fgraph.inputs, input_storage)], for input, storage in zip(fgraph.inputs, input_storage)],
[link.Container(output, storage, True) [link.Container(output, storage, True)
for output, storage in zip(fgraph.outputs, output_storage)], for output, storage in zip(fgraph.outputs, output_storage)],
thunks, thunks,
order) order)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论