提交 3c75bce6 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Merge pull request #3017 from nouiz/tests_stability

[TESTS] fix buidbot tests errors
......@@ -183,6 +183,13 @@ class BadThunkOutput(DebugModeError):
for val in self.inputs_val], file=sio)
print(" Inputs Strides:", [getattr(val, 'strides', None)
for val in self.inputs_val], file=sio)
scalar_values = []
for ipt in self.inputs_val:
if getattr(ipt, "size", -1) <= 10:
scalar_values.append(ipt)
else:
scalar_values.append("not shown")
print(" Inputs values: %s" % scalar_values, file=sio)
print(" Bad Variable:", self.r, file=sio)
print(" thunk1 :", self.thunk1, file=sio)
print(" thunk2 :", self.thunk2, file=sio)
......
......@@ -413,6 +413,8 @@ def test_dnn_valid():
def test_dnn_valid_err():
if not cuda.dnn.dnn_available():
raise SkipTest(cuda.dnn.dnn_available.msg)
assert_raises(ValueError, _params_allgood, (1, 2, 4, 4), (1, 1, 2, 2),
'valid', theano_mode=theano_mode.including("cudnn"),
cls=DnnBase)
......
......@@ -1130,7 +1130,8 @@ _grad_broadcast_unary_abs1_no_complex = dict(
)
_grad_broadcast_unary_0_2_no_complex = dict(
normal=[numpy.asarray(rand_ranged(0, 2, (2, 3)), dtype=floatX)],
# Don't go too close to 2 for tests in float32
normal=[numpy.asarray(rand_ranged(0, 1.9, (2, 3)), dtype=floatX)],
)
# inplace ops when the input is integer and the output is float*
......@@ -1760,7 +1761,7 @@ _good_broadcast_unary_gammaln = dict(
empty=(numpy.asarray([], dtype=config.floatX),),)
_grad_broadcast_unary_gammaln = dict(
# smaller range as our grad method does not estimate it well enough.
normal=(rand_ranged(1e-8, 8, (2, 3)),),)
normal=(rand_ranged(1e-1, 8, (2, 3)),),)
GammaTester = makeBroadcastTester(
op=tensor.gamma,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论