-
Notifications
You must be signed in to change notification settings - Fork 193
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
add_noise should take key as KeyArrayLike, not seed as int #1137
Comments
also key init in AddNoiseState should be changed with new |
You're right! Do you want to contribute a PR fixing this? |
I think I can, but I've never done this before. Should I check contributor's guide on official cite? UPD.
|
That's right. If you want to pursue it, it's a valuable contribution. You can fork the repository, make a new branch in your fork, add the changes (to both code and comments) and update tests (probably no need to write new tests). If you point your browser to this repo, github should offer to make a pull request from your fork. Feel free to do it incrementally, you can make the PR almost immediately and any additional commits in the branch in your fork will automatically show up in the PR. I can review your code once you make the PR |
Done! But currently I have no option to run |
Also I additionally changed |
Cool! Let's continue this discussion on the PR, can you make sure you create it for deepmind/optax? I can't see it at the moment |
here #1138 |
I think, that seed in add_noise should be replaced with key to follow
jax.random
andflax.nnx.Modules
, where keys are used instead of seeds. It doesn't seem hard to do, like replace seed in args, in docstring, and then in AddNoiseState init (AddNoiseState by itself doesn't need to change as far as I can see).The text was updated successfully, but these errors were encountered: