提交 6af77b74 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

PEP8

上级 2bbb2820
...@@ -2199,22 +2199,29 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2199,22 +2199,29 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
raise StochasticOrder(infolog.getvalue()) raise StochasticOrder(infolog.getvalue())
else: else:
if self.verbose: if self.verbose:
print >> sys.stderr, "OPTCHECK: optimization", i, "of", len(li), "events was stable." print >> sys.stderr, "OPTCHECK: optimization", i, \
"of", len(li), "events was stable."
else: else:
fgraph0 = fgraph fgraph0 = fgraph
del fgraph0 del fgraph0
self.fgraph = fgraph self.fgraph = fgraph
#equivalence_tracker.printstuff() #equivalence_tracker.printstuff()
linker = _Linker(self) linker = _Linker(self)
# the 'no_borrow' outputs are the ones for which that we can't return
# the internal storage pointer.
#the 'no_borrow' outputs are the ones for which that we can't return the internal storage pointer. no_borrow = [
no_borrow = [output for output, spec in zip(fgraph.outputs, outputs+additional_outputs) if not spec.borrow] output
for output, spec in izip(fgraph.outputs,
outputs + additional_outputs)
if not spec.borrow]
if no_borrow: if no_borrow:
self.linker = linker.accept(fgraph, no_recycling = infer_reuse_pattern(fgraph, no_borrow)) self.linker = linker.accept(
fgraph,
no_recycling=infer_reuse_pattern(fgraph, no_borrow))
else: else:
self.linker = linker.accept(fgraph) self.linker = linker.accept(fgraph)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论