提交 5332d39d authored 作者: James Bergstra's avatar James Bergstra

typo in Reshape.__hash__

上级 317389c3
......@@ -2257,7 +2257,7 @@ class Reshape(Op):
return (type(other) is type(self)) and (other.ndim == self.ndim)
def __hash__(self):
# .name does not participate because it doesn't affect computations
return hash(type(other)) ^ hash(self.ndim)
return hash(type(self)) ^ hash(self.ndim)
def __str__(self):
return '%s{%s}' %(self.__class__.__name__, self.ndim)
def make_node(self, x, shp):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论