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/07/24 15:45:58 UTC

[GitHub] [incubator-mxnet] access2rohit commented on a change in pull request #18782: [WIP] Add Large Tensor Test for linalg_syrk

access2rohit commented on a change in pull request #18782:
URL: https://github.com/apache/incubator-mxnet/pull/18782#discussion_r460135738



##########
File path: tests/nightly/test_large_array.py
##########
@@ -1791,6 +1792,29 @@ def test_sparse_dot():
     assert out.shape == (2, 2)
 
 
+def test_linalg_operators():
+    def check_syrk_batch():
+        # test both forward and backward
+        # batch syrk will be applied to the last two dimensions
+        A = nd.zeros((2, LARGE_SQ_X, LARGE_SQ_X))
+        for i in range(LARGE_SQ_X):
+            A[0,i,i] = 1
+            A[1,i,i] = 0.1
+        A.attach_grad()
+        with mx.autograd.record():
+            out = nd.linalg.syrk(A, alpha=2, transpose=False)
+        for i in range(LARGE_SQ_X):

Review comment:
       You can check in 2 places in (0,y,y) and (1,y,y). No need to check in 70000 locations




----------------------------------------------------------------
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