提交 b2dcfa8c authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix to crashing test

The tolerance needs to be increased because the numbers in the computations are too small.
上级 77679d7b
......@@ -2705,7 +2705,7 @@ class T_Scan(unittest.TestCase):
grad_fn = theano.function([xinit, w], [gx,gw],
allow_input_downcast = True)
rng = numpy.random.RandomState(utt.fetch_seed())
v_x = numpy.array(rng.uniform(size=(5,2,3), low=-.5, high=.5),
v_x = numpy.array(rng.uniform(size=(5,2,3), low=-2., high=2.),
dtype=theano.config.floatX)
v_w = numpy.array(rng.uniform(size=(2,2)), dtype= theano.config.floatX)
analytic_grad = grad_fn(v_x, v_w)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论