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 2019/04/23 04:49:44 UTC
[GitHub] [incubator-mxnet] reminisce commented on a change in pull request
#14733: Enable zero-copy from numpy to MXNet NDArray
reminisce commented on a change in pull request #14733: Enable zero-copy from numpy to MXNet NDArray
URL: https://github.com/apache/incubator-mxnet/pull/14733#discussion_r277515312
##########
File path: tests/python/unittest/test_ndarray.py
##########
@@ -1653,6 +1653,14 @@ def test_ndarray_nan_comparison():
for i in (np.isnan(data1_grad))[1][0].flatten():
assert i == True
+
+def test_zero_from_numpy():
Review comment:
Can you add more test cases including
1. scalar tensors.
2. zero-size tensors.
3. `zero_copy=False`.
4. Perturbing the elements of numpy ndarray will equivalently affect mxnet NDArray, and vice versa.
5. Deleting either one of them should not obliterate the content of the other one when `zero_copy=True` and `False`.
----------------------------------------------------------------
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