Skip to content

Incorrect usage of PRNG #4

Description

@pgenevski

Hi,

I noticed that you are reusing the same key in e.g. cell 23 of main/src/notebooks/jax_tutorials/chapter_5_vmap_pmap.ipynb

key, subkey = random.split(key)
rotate = random.randint(key, shape=[batch_size], minval=0, maxval=2)

Looks like you shall be using the subkey in random.randint, not the original key. The way it is now subkey is never used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions