提交 36e416f2 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Make test float32-friendly

上级 573bbd8d
...@@ -1694,8 +1694,10 @@ def test_local_subtensor_alloc0(): ...@@ -1694,8 +1694,10 @@ def test_local_subtensor_alloc0():
g = theano.function([x, y], z_vec) g = theano.function([x, y], z_vec)
# DebugMode should detect if something goes wrong. # DebugMode should detect if something goes wrong.
f(numpy.zeros((3,5)), numpy.arange(5)) xval = numpy.zeros((3,5), dtype=config.floatX)
g(numpy.zeros((3,5)), numpy.arange(5)) yval = numpy.arange(5, dtype=config.floatX)
f(xval, yval)
g(xval, yval)
def test_local_fill_useless(): def test_local_fill_useless():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论