提交 ee89ad32 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fix destroy map bug for pure python code

上级 402bc318
......@@ -781,7 +781,7 @@ class Scan(PureOp):
in xrange(self.n_outs + self.n_nit_sot)]
# 2.1 Create storage space for outputs
for idx in xrange(self.n_outs):
if self.inplace:
if idx in self.destroy_map:
# ^ Case 1. Outputs should be computed inplace of their
# initial state
outs[idx][0] = args[self.seqs_arg_offset + idx]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论