提交 806870f9 authored 作者: Frederic's avatar Frederic

Fix a bad view map to real(float32).

A test is failing in debugmode: THEANO_FLAGS=mode=DebugMode theano-nose -s --pdb --pdb-failure theano/tensor/tests/test_complex.py:TestRealImag.test_on_real_input
上级 1a1d1a02
......@@ -2028,8 +2028,9 @@ def chi2sf(x, k):
"""chi squared survival function"""
@_scal_elemwise_with_nfunc('real', 1, -1)
#numpy.real(float32) return a view on the inputs.
#@_scal_elemwise_with_nfunc('real', 1, -1)
@_scal_elemwise
def real(z):
"""Return real component of complex-valued tensor `z`"""
_tensor_py_operators.real = property(real)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论