提交 045480ac authored 作者: Frederic Bastien's avatar Frederic Bastien

fix test in float32 mode.

上级 def0bbbe
......@@ -112,8 +112,7 @@ class T_Scan(unittest.TestCase):
numpy_values = numpy.array([ state*(2**(k+1)) for k in xrange(steps) ])
theano_values = my_f(state,steps)
cmp = numpy_values == theano_values
assert numpy.all(cmp)
assert numpy.allclose(numpy_values,theano_values)
# simple rnn, one input, one state, weights for each; input/state
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论