Skip to content

Fix gradient tracking order - #208

Open
cossu555 wants to merge 2 commits into
pralab:mainfrom
cossu555:main
Open

Fix gradient tracking order#208
cossu555 wants to merge 2 commits into
pralab:mainfrom
cossu555:main

Conversation

@cossu555

Copy link
Copy Markdown
Contributor

Summary

Capture the raw gradient immediately after _loss_and_grad() and before tracker execution.

Previously, trackers received a zero gradient during the first iteration and the gradient from the previous iteration during subsequent iterations. Consequently, the gradient computed during the final iteration was never recorded.

Fixes #207

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.

Trackers receive the gradient from the previous iteration

1 participant