提交 1be844e9 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix the problem at the root

上级 d9fe8b99
...@@ -798,6 +798,8 @@ class Scan(PureOp): ...@@ -798,6 +798,8 @@ class Scan(PureOp):
pos = [(-self.mintaps[idx]) % store_steps[idx] for idx pos = [(-self.mintaps[idx]) % store_steps[idx] for idx
in xrange(self.n_outs + self.n_nit_sot)] in xrange(self.n_outs + self.n_nit_sot)]
if not getattr(self, 'destroy_map', None):
self.destroy_map = {}
# 2.1 Create storage space for outputs # 2.1 Create storage space for outputs
for idx in xrange(self.n_outs): for idx in xrange(self.n_outs):
if idx in self.destroy_map: if idx in self.destroy_map:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论