Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add large tensor test for linalg_gemm2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Kumar Srivastava committed Jul 15, 2020
1 parent e2366e9 commit ab5cee5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,15 @@ def check_minimum():
check_maximum()
check_minimum()

def test_linalg_ops():
def check_linalg_gemm2():
a= mx.nd.ones(shape=(SMALL_Y, LARGE_X))
b= mx.nd.ones(shape=(LARGE_X, SMALL_Y))
res=nd.linalg_gemm2(a, b)
res.shape == (SMALL_Y, SMALL_Y)
assert res.asnumpy()[0][0] == LARGE_X
assert res.asnumpy()[-1][-1] == LARGE_X
check_linalg_gemm2()

@pytest.mark.timeout(0)
def test_sparse_dot():
Expand Down

0 comments on commit ab5cee5

Please sign in to comment.