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

Method test_state

python/tests/test_compile.py:314–316  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

312
313 @partial(mx.compile, inputs=state)
314 def test_state(x):
315 x = x + state["y"]
316 return x
317
318 test_state(mx.array(1))
319 # Check the state is unchanged

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.60
getMethod · 0.45

Tested by

no test coverage detected