提交 6193e53a authored 作者: Iban Harlouchet's avatar Iban Harlouchet

__props__ for theano/gof/tests/test_compute_test_value.py

上级 e6681447
...@@ -20,12 +20,7 @@ from theano.tensor.basic import _allclose ...@@ -20,12 +20,7 @@ from theano.tensor.basic import _allclose
# Used in TestComputeTestValue.test_no_perform # Used in TestComputeTestValue.test_no_perform
class IncOneC(Op): class IncOneC(Op):
"""An Op with only a C (c_code) implementation""" """An Op with only a C (c_code) implementation"""
__props__ = ()
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def make_node(self, input): def make_node(self, input):
input = scalar.as_scalar(input) input = scalar.as_scalar(input)
...@@ -343,12 +338,7 @@ class TestComputeTestValue(unittest.TestCase): ...@@ -343,12 +338,7 @@ class TestComputeTestValue(unittest.TestCase):
def test_no_c_code(self): def test_no_c_code(self):
class IncOnePython(Op): class IncOnePython(Op):
"""An Op with only a Python (perform) implementation""" """An Op with only a Python (perform) implementation"""
__props__ = ()
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def make_node(self, input): def make_node(self, input):
input = scalar.as_scalar(input) input = scalar.as_scalar(input)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论