提交 d721ac6b authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed bug in DimShuffle: the writeable flag was not properly copied

上级 1929375f
......@@ -232,7 +232,7 @@ class DimShuffle(Op):
'%(basename)s->data, %(basename)s->descr->elsize, '
#borrow only the writable flag from the base
# the NPY_OWNDATA flag will default to 0.
'PyArray_ISWRITEABLE(%(basename)s), NULL)'),
'PyArray_ISWRITEABLE(%(basename)s) ? NPY_WRITEABLE : 0, NULL)'),
#recalculate flags: CONTIGUOUS, FORTRAN, ALIGNED
'PyArray_UpdateFlags(%(res)s, NPY_UPDATE_ALL)',
#we are making a view in both inplace and non-inplace cases
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论