Zha0q1 commented on a change in pull request #19303:
URL: https://github.com/apache/incubator-mxnet/pull/19303#discussion_r500637837
##########
File path: tests/nightly/test_np_large_array.py
##########
@@ -1324,3 +1324,15 @@ def test_cumsum():
assert input.grad.shape == input.shape
assert input.grad[0, 0] == INT_OVERFLOW
assert input.grad[-1, -1] == 1
+
+
+@use_np
+def test_array_split():
+ A = np.ones((INT_OVERFLOW, 2))
+ A[0][0] = 0
+ A[-1][-1] = 2
+ B = np.array_split(A, 2)
+ assert B[0].shape ==(HALF_INT_OVERFLOW, 2)
+ assert B[1].shape ==(HALF_INT_OVERFLOW, 2)
+ assert B[0][0][0] == 0
+ assert B[1][-1][-1] == 2
Review comment:
can you tweak the naming here
----------------------------------------------------------------
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]