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

Method simple_binary

python/tests/test_compile.py:220–221  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

218 self.assertTrue(mx.allclose(expected_out, out))
219
220 def simple_binary(x, y):
221 return mx.abs(mx.exp(x + y) + y)
222
223 x = mx.array([[1.0, -3.0], [0.5, -0.5]])
224 y = mx.array([[2.0, -1.0], [0.25, -0.25]])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected