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

fixed R_op for alloc after talking to Pascal

上级 1f3b1d46
......@@ -2490,7 +2490,10 @@ class Alloc(gof.Op):
return ret
def R_op(self, inputs, eval_points):
return [None]
# There is only one entry in eval_points and inputs
if None in eval_points
return [None]
return self.make_node(*eval_points).outputs
alloc = Alloc()
pprint.assign(alloc, printing.FunctionPrinter('alloc'))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论