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

fixed activation gradient resetting for backward pass #342

Merged
merged 1 commit into from
May 3, 2024

Conversation

ngc92
Copy link
Contributor

@ngc92 ngc92 commented May 3, 2024

also, we don't need to touch the other buffers in zero_grad, these are anyway overwritten multiple times during backward

@karpathy karpathy merged commit f133ee2 into karpathy:feature/grad_accum May 3, 2024
@ngc92 ngc92 deleted the feature/grad_accum branch May 19, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants