MCPcopy Create free account
hub / github.com/ml-explore/mlx / f_ref

Method f_ref

python/tests/test_quantized.py:931–932  ·  view source on GitHub ↗
(x, w, i1, i2)

Source from the content-addressed store, hash-verified

929 w_hat, qw, s, b = quantize(w)
930
931 def f_ref(x, w, i1, i2):
932 return mx.gather_mm(x, w, i1, i2).sum()
933
934 def f_test(x, qw, s, b, i1, i2):
935 return mx.gather_qmm(x, qw, s, b, i1, i2, transpose=True).sum()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected