TreefyState#
- class brainstate.TreefyState[A](type, value, **metadata)[source]#
The state as a pytree.
- copy()[source]#
Copy the state reference.
- Return type:
TreefyState[A]
- replace(value)[source]#
Replace the value of the state reference.
- Return type:
TreefyState[B]