提交 51c960be authored 作者: Iban Harlouchet's avatar Iban Harlouchet

__props__ to theano/tensor/nnet/neighbours.py

上级 a24188f0
...@@ -13,6 +13,9 @@ import numpy ...@@ -13,6 +13,9 @@ import numpy
class Images2Neibs(Op): class Images2Neibs(Op):
__props__ = ()
def __init__(self, mode='valid'): def __init__(self, mode='valid'):
""" """
:type mode: str :type mode: str
...@@ -33,12 +36,6 @@ class Images2Neibs(Op): ...@@ -33,12 +36,6 @@ class Images2Neibs(Op):
" implemented for the op Images2Neibs") " implemented for the op Images2Neibs")
self.mode = mode self.mode = mode
def __eq__(self, other):
return type(self) == type(other) and self.mode == other.mode
def __hash__(self):
return hash(type(self)) ^ hash(self.mode)
def __str__(self): def __str__(self):
return self.__class__.__name__ + "{%s}" % self.mode return self.__class__.__name__ + "{%s}" % self.mode
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论