提交 fcf5ab2e authored 作者: Reyhane Askari's avatar Reyhane Askari

minor fix

上级 e513a531
......@@ -117,9 +117,6 @@ class Apply(Node):
if output.owner is None:
output.owner = self
output.index = i
if not hasattr(output, "tag"):
output.tag = utils.scratchpad()
utils.add_tag_trace(output)
elif output.owner is not self or output.index != i:
raise ValueError("All output variables passed to Apply must belong to it.")
self.outputs.append(output)
......
......@@ -310,7 +310,7 @@ class Print(Op):
self.global_fn = global_fn
def make_node(self, xin):
xout = xin.type.make_variable()
xout = xin.type()
return Apply(op=self, inputs=[xin], outputs=[xout])
def perform(self, node, inputs, output_storage):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论