提交 fe818211 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

__props__ for theano/tests/test_rop.py

上级 6a01c31e
......@@ -34,11 +34,7 @@ class BreakRop(Op):
"""
@note: Non-differentiable.
"""
def __hash__(self):
return hash(type(self))
def __eq__(self, other):
return type(self) == type(other)
__props__ = ()
def make_node(self, x):
return Apply(self, [x], [x.type()])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论