Skip to content
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

[nnx] add Dropout.rngs #3815

Merged
merged 1 commit into from
Apr 9, 2024
Merged

[nnx] add Dropout.rngs #3815

merged 1 commit into from
Apr 9, 2024

Conversation

cgarciae
Copy link
Collaborator

@cgarciae cgarciae commented Apr 2, 2024

What does this PR do?

  • Adds a .rngs: Rngs attribute to Dropout which can be provided at construction to avoid having to pass it at call time.
  • Removes the logic that set Rngs attributes to None after Module.__init__.
  • Adds test using the Dropout.rngs attribute.

@cgarciae cgarciae changed the base branch from nnx-rng-tags to main April 2, 2024 13:05
@copybara-service copybara-service bot merged commit 2718455 into main Apr 9, 2024
4 checks passed
@copybara-service copybara-service bot deleted the nnx-dropout-optional-state branch April 9, 2024 13:34
@chiamp chiamp mentioned this pull request Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants