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

[Bugfix] Fix SRMM to allow operation beyond memory_length #227

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

i404788
Copy link
Contributor

@i404788 i404788 commented Apr 6, 2024

Problem (Why?)

At step memeory_length+1 it causes a 0**-beta which is not allowed.

Solution (What/How?)

Move the +1 to outside the mod expression

Other changes (bug fixes, small refactors)

no

Notes

I think this was just a logic error but let me know if I'm incorrect since I'm not investigating this specific optimizer; I'm working on test harness to compare all optimizers.

Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (da65344) to head (b0124e0).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #227   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           82        82           
  Lines         5946      5946           
=========================================
  Hits          5946      5946           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kozistr kozistr added the bug Something isn't working label Apr 7, 2024
Copy link
Owner

@kozistr kozistr left a comment

Choose a reason for hiding this comment

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

thanks for the fix! lgtm :)

@kozistr kozistr merged commit 523f140 into kozistr:main Apr 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants