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