(A: torch.Tensor, B: torch.Tensor)
| 27 | |
| 28 | @register_kernel("bitsandbytes::int8_linear_matmul", "cpu") |
| 29 | def _(A: torch.Tensor, B: torch.Tensor): |
| 30 | return torch._int_mm( |
| 31 | A.reshape(-1, A.shape[-1]), |
| 32 | B.t(), |
| 33 | ).reshape(*A.shape[:-1], B.shape[0]) |
| 34 | |
| 35 | |
| 36 | if not isinstance(lib, ErrorHandlerMockBNBNativeLibrary): |
nothing calls this directly
no test coverage detected