提交 a8fb84fb authored 作者: Tanjay94's avatar Tanjay94

Fixed __eq__ method for Op class.

上级 43ef00ce
...@@ -585,7 +585,7 @@ class Op(utils.object2, PureOp, CLinkerOp): ...@@ -585,7 +585,7 @@ class Op(utils.object2, PureOp, CLinkerOp):
if hasattr(self, 'props'): if hasattr(self, 'props'):
return (type(self) == type(other) and self.props() == other.props()) return (type(self) == type(other) and self.props() == other.props())
else: else:
return super(Op, self).__eq__(other) return NotImplemented
def make_thunk(self, node, storage_map, compute_map, no_recycling): def make_thunk(self, node, storage_map, compute_map, no_recycling):
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论