提交 3f09669c authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Define __ne__ as "not equal" by default in PureOp.

上级 b75cf2e1
......@@ -579,6 +579,9 @@ class PureOp(object):
else:
return node.outputs
def __ne__(self, other):
return not (self == other)
# Convenience so that subclass implementers don't have to import utils
# just to self.add_tag_trace
add_tag_trace = staticmethod(utils.add_tag_trace)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论