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

Add a straight-through gradient wrapper method. #70

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 11, 2021

Add a straight-through gradient wrapper method.

Categorical distributions wrapped this way will behave the same in the forward
pass, but use a biased gradient computed on self.probs in the backward pass.

@google-cla google-cla bot added the cla: no label Nov 11, 2021
@copybara-service copybara-service bot force-pushed the test_409150269 branch 7 times, most recently from 471ec14 to dab3796 Compare November 23, 2021 10:53
@copybara-service copybara-service bot force-pushed the test_409150269 branch 2 times, most recently from f77df8d to 25bc697 Compare December 1, 2021 14:57
Categorical distributions wrapped this way will behave the same in the forward
pass, but use a biased gradient computed on `self.probs` in the backward pass.

PiperOrigin-RevId: 413413594
@copybara-service copybara-service bot merged commit 6ebedf1 into master Dec 1, 2021
@copybara-service copybara-service bot deleted the test_409150269 branch December 1, 2021 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants