MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / _matmul_flops

Function _matmul_flops

prepare.py:55–57  ·  view source on GitHub ↗

FLOPs for a single matmul C[M,N] = A[M,K] @ B[K,N].

(M: int, N: int, K: int)

Source from the content-addressed store, hash-verified

53
54
55def _matmul_flops(M: int, N: int, K: int) -> int:
56 """FLOPs for a single matmul C[M,N] = A[M,K] @ B[K,N]."""
57 return 2 * M * N * K
58
59
60def _benchmark_fn(fn, *args, warmup: int = _WARMUP_ITERS, iters: int = _BENCH_ITERS):

Callers 1

benchmark_baselinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected