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

[WIP][DO NOT MERGE] Add large tensor test for linalg_dgemm2 #18718

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/nightly/test_large_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,15 @@ def run_trsm(inp):
assert(grad[0, 0, 0] == 0)
assert(grad[1, 0, 0] == 0)

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()
check_potrf()
check_potri()
check_syrk_batch()
Expand Down