apeforest commented on a change in pull request #15059: [MXNET-1410]Adding 
Large Tensor Support for tensor transpose
URL: https://github.com/apache/incubator-mxnet/pull/15059#discussion_r289496317
 
 

 ##########
 File path: tests/nightly/test_large_array.py
 ##########
 @@ -279,6 +279,33 @@ def test_diag():
     assert_almost_equal(r.asnumpy(), np.diag(a_np, k=k))
 
 
+def create_2d_tensor(rows, columns):
+    a = np.arange(0, rows).reshape(rows, 1)
+    b = np.broadcast_to(a, shape=(a.shape[0], columns))
+    return nd.array(b, dtype=np.int64)
 
 Review comment:
   can we just return b?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to