Remove state return from function example in compile documentation

This commit is contained in:
russellizadi 2025-08-19 18:08:06 -04:00
parent cea9369610
commit 8ecdbcadb8

View File

@ -225,7 +225,7 @@ In some cases returning updated state can be pretty inconvenient. Hence,
def fun(x, y):
z = x + y
state.append(z)
return mx.exp(z), state
return mx.exp(z)
fun(mx.array(1.0), mx.array(2.0))
# Prints [array(3, dtype=float32)]