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

Method hadamard_transform

python/tests/test_ops.py:3043–3044  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

3041 c = mx.array(c).astype(mx.float32)
3042
3043 def hadamard_transform(x):
3044 return h @ x / mx.sqrt(x.shape[-1])
3045
3046 out = mx.vjp(hadamard_transform, [x], [c])
3047 out_t = mx.vjp(mx.hadamard_transform, [x], [c])

Callers 2

test_hadamardMethod · 0.80
hadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected