提交 7662490d authored 作者: Iulian Vlad Serban's avatar Iulian Vlad Serban

Fixed rounding error in test_local_elemwise_sub_zeros.

上级 4a1fc766
......@@ -3488,9 +3488,9 @@ def test_local_elemwise_sub_zeros():
mat = T.matrix()
rng = numpy.random.RandomState(seed=utt.fetch_seed())
scalar_val = rng.rand(1)[0]
vect_val = rng.rand(5)
mat_val = rng.rand(3, 2)
scalar_val = rng.rand(1).astype(config.floatX)[0]
vect_val = rng.rand(5).astype(config.floatX)
mat_val = rng.rand(3, 2).astype(config.floatX)
mode = theano.compile.get_default_mode()\
.excluding('canonicalize', 'uncanonicalize',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论