-
Notifications
You must be signed in to change notification settings - Fork 759
Add split and key methods to RngStream and Rngs #5047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Unfortunately, the |
3223d3e to
aa6ce6a
Compare
aa6ce6a to
b63c831
Compare
b63c831 to
6656042
Compare
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
0e76365 to
0804444
Compare
|
Thanks @samanklesaria ! As a follow up PR, we could consider:
|
| return pad_shard_unpad_wrapper | ||
|
|
||
|
|
||
| class _DictOrList(dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a utility datatype used by build_tree_from_paths, which is an inverse of jax.tree.leaves_with_path. It's useful for defining the bridge code porting old rng state to the new names. See the changes to the tutorial.
Closes #5046