You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/02/22 00:55:13 UTC
[GitHub] [incubator-mxnet] leezu commented on a change in pull request
#17657: Add numpy_fallback decorator
leezu commented on a change in pull request #17657: Add numpy_fallback decorator
URL: https://github.com/apache/incubator-mxnet/pull/17657#discussion_r382868685
##########
File path: python/mxnet/ndarray/ndarray.py
##########
@@ -5087,7 +5087,7 @@ def _make_dl_managed_tensor(array):
return array(ndarray, dtype=ndarray.dtype)
if not ndarray.flags['C_CONTIGUOUS']:
- raise ValueError("Only c-contiguous arrays are supported for zero-copy")
+ return array(ndarray, dtype=ndarray.dtype)
Review comment:
Why does this PR affect this line?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services