提交 34b254ea authored 作者: James Bergstra's avatar James Bergstra 提交者: Frederic

delete unnecessary __repr__

上级 3d49e41a
...@@ -173,9 +173,6 @@ class Gemv(Op): ...@@ -173,9 +173,6 @@ class Gemv(Op):
def __eq__(self, other): def __eq__(self, other):
return type(self)==type(other) and self.inplace == other.inplace return type(self)==type(other) and self.inplace == other.inplace
def __repr__(self):
return self.__str__()
def __str__(self): def __str__(self):
if self.inplace: if self.inplace:
return '%s{inplace}' % self.__class__.__name__ return '%s{inplace}' % self.__class__.__name__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论