Skip to content
Discussion options

You must be logged in to vote

jax.flatten_util.tree_ravel does exactly this. It returns the flattened vector + a function to unravel (or unflatten) the vector.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dptam
Comment options

@ddrous
Comment options

@PhilipVinc
Comment options

Answer selected by dptam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants