提交 bc2d1a17 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add float16 to the complex corner case.

上级 0ae495e1
...@@ -5982,17 +5982,20 @@ class test_arithmetic_cast(unittest.TestCase): ...@@ -5982,17 +5982,20 @@ class test_arithmetic_cast(unittest.TestCase):
numpy.__version__.split('.')[:2]] 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' and (b_type == 'float32' or
b_type == 'float16') and
combo == ('scalar', 'array') and combo == ('scalar', 'array') and
bool(numpy_version >= [1, 6]) and bool(numpy_version >= [1, 6]) and
theano_dtype == 'complex128' and theano_dtype == 'complex128' and
numpy_dtypes == ['complex64', numpy_dtype == 'complex64'):
'complex64']): # In numpy 1.6.x adding a
# In numpy 1.6.x adding a complex128 with # complex128 with a float32 or
# a float32 may result in a complex64. This # float16 may result in a
# may be a bug (investigation is currently # complex64. This may be a bug
# in progress), so in the meantime we just # (investigation is currently in
# mark this test as a known failure. # progress), so in the meantime we
# just mark this test as a known
# failure.
raise KnownFailureTest('Known issue with ' raise KnownFailureTest('Known issue with '
'numpy >= 1.6.x see #761') 'numpy >= 1.6.x see #761')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论