sxjscience commented on a change in pull request #18342:
URL: https://github.com/apache/incubator-mxnet/pull/18342#discussion_r426198133
##########
File path: tests/python/unittest/test_numpy_ndarray.py
##########
@@ -1327,3 +1327,26 @@ def test_np_ndarray_pickle():
a_load = pickle.load(f)
same(a.asnumpy(), a_load.asnumpy())
[email protected]('dtype', [np.float32, np.int32])
[email protected]('size', [
+ (3, 4, 5, 6),
+ (2, 10),
+ (15,),
+ ()
+])
+@use_np
+def test_dlpack(dtype, size):
+ a = mx.np.random.uniform(size=size)
+ a_np = a.copy()
Review comment:
Suggest adding `a += 1` to test for the wait_to_read option.
----------------------------------------------------------------
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:
[email protected]