提交 0a18d7da authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix test in float32

上级 b155c92f
......@@ -2030,7 +2030,7 @@ class T_useless_elemwise(unittest.TestCase):
# tensor_copy, and view
x = T.matrix()
f = theano.function([x], T.tensor_copy(x), mode=self.mode)
vx = numpy.random.rand(5,4)
vx = numpy.random.rand(5,4).astype(config.floatX)
f(vx)
topo = f.maker.env.toposort()
assert len(topo) == 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论