提交 81b135e7 authored 作者: Tanjay94's avatar Tanjay94

Added Error definition for norm function.

上级 dbfbfb8c
......@@ -1256,7 +1256,7 @@ def norm(x,ord):
else:
raise ValueError(0)
elif ndim > 2:
raise NotImplementedError
raise NotImplementedError("We don't support norm witn ndim > 2")
class lstsq(theano.Op):
def __eq__(self, other):
......
......@@ -40,6 +40,7 @@ from theano.sandbox.linalg import eig, eigh, eigvalsh
from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr
def check_lower_triangular(pd, ch_f):
ch = ch_f(pd)
assert ch[0, pd.shape[1] - 1] == 0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论