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

Borrow=True is dangerous if one output destroys another

This is a temporary fix until we fix the behaviour of borrow=True for the general case.
上级 3bf101b0
......@@ -530,7 +530,7 @@ class Scan(PureOp):
self.n_sit_sot +
self.n_nit_sot)
wrapped_inputs = [Param(x, borrow=True) for x in self.inputs]
wrapped_outputs = [Out(x, borrow=True) for x in
wrapped_outputs = [Out(x, borrow=False) for x in
self.outputs[:slices]]
wrapped_outputs += self.outputs[slices:]
profile = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论