提交 1ea11d51 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Numpy should always be >= 1.6

上级 aef86349
...@@ -6692,14 +6692,11 @@ class test_arithmetic_cast(unittest.TestCase): ...@@ -6692,14 +6692,11 @@ class test_arithmetic_cast(unittest.TestCase):
config.int_division == 'floatX'): config.int_division == 'floatX'):
assert theano_dtype == config.floatX assert theano_dtype == config.floatX
continue continue
numpy_version = [int(v) for v in
numpy.__version__.split('.')[:2]]
if (cfg == 'numpy+floatX' and if (cfg == 'numpy+floatX' and
a_type == 'complex128' and a_type == 'complex128' and
(b_type == 'float32' or (b_type == 'float32' or
b_type == 'float16') and b_type == 'float16') and
combo == ('scalar', 'array') and combo == ('scalar', 'array') and
bool(numpy_version >= [1, 6]) and
theano_dtype == 'complex128' and theano_dtype == 'complex128' and
numpy_dtype == 'complex64'): numpy_dtype == 'complex64'):
# In numpy 1.6.x adding a complex128 with # In numpy 1.6.x adding a complex128 with
...@@ -6707,7 +6704,7 @@ class test_arithmetic_cast(unittest.TestCase): ...@@ -6707,7 +6704,7 @@ class test_arithmetic_cast(unittest.TestCase):
# of 1.9.2. this is still the case so it is # of 1.9.2. this is still the case so it is
# probably by design # probably by design
raise SkipTest("Known issue with" raise SkipTest("Known issue with"
"numpy >= 1.6.x see #761") "numpy see #761")
# In any other situation: something wrong is # In any other situation: something wrong is
# going on! # going on!
assert False assert False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论