Regression test for F7: gemm_async must reject partial scale factors.
()
| 58 | |
| 59 | |
| 60 | def test_gemm_async_partial_scale_factor(): |
| 61 | """Regression test for F7: gemm_async must reject partial scale factors.""" |
| 62 | from tvm.tirx.script.builder.tirx import gemm_async |
| 63 | |
| 64 | A = decl_buffer((64, 64), "float16", scope="shared") |
| 65 | B = decl_buffer((64, 64), "float16", scope="shared") |
| 66 | C = decl_buffer((64, 64), "float16", scope="shared") |
| 67 | SF = decl_buffer((64,), "float16", scope="shared") |
| 68 | |
| 69 | with pytest.raises(ValueError, match="SFA and SFB must both be provided or both be None"): |
| 70 | gemm_async(C[:, :], A[:, :], B[:, :], SFA=SF[:]) |
| 71 | |
| 72 | with pytest.raises(ValueError, match="SFA and SFB must both be provided or both be None"): |
| 73 | gemm_async(C[:, :], A[:, :], B[:, :], SFB=SF[:]) |
| 74 | |
| 75 | |
| 76 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…