patrick-kidger / equinox

Elegant easy-to-use neural networks + scientific computing in JAX. https://docs.kidger.site/equinox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Given a state, how to get the values of its arrays?

Artur-Galstyan opened this issue · comments

As the title says. E.g. I do this:

state, model = eqx.nn.make_with_state(...)(...)

# how to get the arrays within state?

Oh, my bad. It's just:

state.get(model.state_index) # or whatever is the name of the index