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

Removed some errors related to props in theano/tensor/subtensor.py

上级 573689a8
......@@ -1172,8 +1172,7 @@ class IncSubtensor(Op):
"""
check_input = False
__props__ = ("idx_list", "inplace", "set_instead_of_inc",
"destroyhandler_tolerate_aliased")
__props__ = ("idx_list", "inplace", "set_instead_of_inc")
def __init__(self, idx_list, inplace=False, set_instead_of_inc=False,
destroyhandler_tolerate_aliased=None):
......@@ -2116,14 +2115,6 @@ class AdvancedIncSubtensor(Op):
self.allow_legacy_perform = False
def __hash__(self):
return hash((type(self), self.inplace, self.set_instead_of_inc))
def __eq__(self, other):
return (type(self) == type(other) and
self.inplace == other.inplace and
self.set_instead_of_inc == other.set_instead_of_inc)
def __str__(self):
return "%s{%s, %s}" % (self.__class__.__name__,
"inplace=" + str(self.inplace),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论