This method dispatches to at::cuda::blas::gemm 13 and calls cublas routines such as cublasGemmEx 4 (docs 5). I think it might be easier and cleaner to use torch:: methods instead of calling into these backends directly, but I’m also unfamiliar with the implementation.