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

Refactor cleaning of eprop update history #37

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

JesusEV
Copy link
Owner

@JesusEV JesusEV commented Sep 9, 2024

This PR refactors how update history is managed in eprop models, focusing specifically on cleaning up eprop update history. Previously, erase_used_update_history() was called at each update interval, regardless of whether the update history requires cleaning. This method has now been removed. Instead, individual elements of the update history are erased only if their access counter reaches zero, indicating they are no longer needed.

Co-authored-by: Agnes Korcsak-Gorzo 40828647+akorgor@users.noreply.github.com
@JesusEV JesusEV requested a review from akorgor September 9, 2024 12:06
Copy link
Collaborator

@akorgor akorgor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization!

@akorgor akorgor merged commit b532bda into eprop_bio_feature Sep 10, 2024
43 of 44 checks passed
@JesusEV JesusEV deleted the refactor-cleaning-eprop-update-history branch September 10, 2024 08:43
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.

2 participants