提交 7889b93b authored 作者: Frederic's avatar Frederic

test, change the range value to be able to use a lower eps.

上级 45110695
...@@ -2336,8 +2336,7 @@ def _format_info(nb): ...@@ -2336,8 +2336,7 @@ def _format_info(nb):
spa = getattr(sp, format + '_matrix') spa = getattr(sp, format + '_matrix')
x[format] = [variable() for t in range(nb)] x[format] = [variable() for t in range(nb)]
mat[format] = [spa(numpy.random.random_integers(5, size=(3, 4)) - 1, mat[format] = [spa(random_lil((3, 4), theano.config.floatX, 8))
dtype=theano.config.floatX)
for t in range(nb)] for t in range(nb)]
return x, mat return x, mat
...@@ -2386,7 +2385,8 @@ class _HVStackTester(utt.InferShapeTester): ...@@ -2386,7 +2385,8 @@ class _HVStackTester(utt.InferShapeTester):
self.op_class(format=out_f, dtype=dtype), self.op_class(format=out_f, dtype=dtype),
self.mat[format], self.mat[format],
structured=False, structured=False,
eps=1e-1) eps=1e-2,
)
def _hv_switch(op, expected_function): def _hv_switch(op, expected_function):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论