Skip to content
Discussion options

You must be logged in to vote

Can you make use of jax.random.fold_in within the scan to avoid upfront allocation via split? For example, if you increment an integer counter between each scan iteration, you can fold that in to a fixed "root" scan key to produce a local subkey for each scan iteration.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@femtomc
Comment options

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