提交 e4bb7837 authored 作者: Frederic Bastien's avatar Frederic Bastien

small bugfix.

上级 9b304769
......@@ -1257,7 +1257,7 @@ class Prepend_scalar_constant_to_each_row(gof.Op):
def __eq__(self, other):
return (type(self) == type(other)) and (self.val == other.val)
def __hash__(self):
return tensor.hashtype(self) ^ hash(self.val.value)
return tensor.hashtype(self) ^ hash(self.val.data)
def __str__(self):
return '%s{%s}'%(self.__class__.__name__,self.val)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论