提交 653a44aa authored 作者: James Bergstra's avatar James Bergstra

more complete __str__ and __repr__ functions in SymbolicOutput

上级 ba49d343
...@@ -200,7 +200,10 @@ class SymbolicOutput(object): ...@@ -200,7 +200,10 @@ class SymbolicOutput(object):
self.borrow = borrow self.borrow = borrow
def __str__(self): def __str__(self):
return "Out(%s)" % self.variable return "Out(%s,%s)" % (self.variable, self.borrow)
def __repr__(self):
return "Out(%s,%s)" % (self.variable, self.borrow)
Out = SymbolicOutput Out = SymbolicOutput
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论