提交 ce5695c1 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix test in float32.

上级 cf578515
...@@ -180,10 +180,9 @@ class TestComputeTestValue(unittest.TestCase): ...@@ -180,10 +180,9 @@ class TestComputeTestValue(unittest.TestCase):
try: try:
config.compute_test_value = "raise" config.compute_test_value = "raise"
x = T.matrix() x = T.matrix()
x.tag.test_value = numpy.zeros((2,3)) x.tag.test_value = numpy.zeros((2,3), dtype=config.floatX)
y = T.matrix() y = T.matrix()
y.tag.test_value = numpy.zeros((2,2)) y.tag.test_value = numpy.zeros((2,2), dtype=config.floatX)
self.assertRaises(ValueError, x.__mul__, y) self.assertRaises(ValueError, x.__mul__, y)
finally: finally:
theano.config.compute_test_value = orig_compute_test_value theano.config.compute_test_value = orig_compute_test_value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论