提交 46b19c24 authored 作者: abergeron's avatar abergeron

Merge pull request #1808 from nouiz/bugfix_real

BUGFIX introduced in 4cf0f055 and merged...
...@@ -880,6 +880,9 @@ class Elemwise(OpenMPOp): ...@@ -880,6 +880,9 @@ class Elemwise(OpenMPOp):
variable.dtype != nout.dtype): variable.dtype != nout.dtype):
variable = numpy.asarray(variable, nout.dtype) variable = numpy.asarray(variable, nout.dtype)
storage[0] = variable storage[0] = variable
# numpy.real return a view!
elif not variable.flags.owndata:
storage[0] = variable.copy()
else: else:
storage[0] = variable storage[0] = variable
i += 1 i += 1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论