提交 5ec7bd1c authored 作者: Frederic's avatar Frederic

small fix that prevent the merge optimizer to merge ops.

上级 9003aba4
...@@ -1411,9 +1411,10 @@ def norm(x,ord): ...@@ -1411,9 +1411,10 @@ def norm(x,ord):
elif ndim > 2: elif ndim > 2:
raise NotImplementedError("We don't support norm witn ndim > 2") raise NotImplementedError("We don't support norm witn ndim > 2")
class lstsq(theano.Op): class lstsq(theano.Op):
def __eq__(self, other): def __eq__(self, other):
pass return type(self) == type(other)
def __hash__(self): def __hash__(self):
return hash(type(self)) return hash(type(self))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论