-
Notifications
You must be signed in to change notification settings - Fork 38
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 control over tolerance for failed amortized computations #64
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
55f1413
Refactor matrix functions types
runame 9291d15
Refactor Shampoo types
runame dac3ac1
Adjust UI and docs
runame 7e20cf3
Replace preconditioner_computation_config with preconditioner_config
runame 1bbaa2f
Fix docstring
runame 32c5df5
Add tolerance for amortized computation failures
runame 65f4f27
Add test for amortized computation failure tolerance
runame 9a137b5
Adjust abstractmethod test
runame 03245f5
Add check that tolerance value non-negative
runame 527c35e
Make failure tracking coarser
runame 01dde5f
Reduce code duplication
runame 6d9810b
Merge branch 'main' into configs-refactor
runame d3a10af
Set default values
runame 709ab1c
Merge branch 'configs-refactor' into fail-counter
runame 196a781
Merge branch 'fail-counter' into fail-counter-v2
runame 273e0a1
Fix defaults with default_factory
runame d53ffc6
Merge branch 'configs-refactor' into fail-counter
runame 8f19d2f
Merge branch 'fail-counter' into fail-counter-v2
runame a92348d
Improve naming
runame 736c76d
Simplify test
runame 54b8879
Merge branch 'main' into fail-counter-v2
runame cf08da0
Fix test
runame 5b37d84
Use keywords explicitly
runame 9e0e46e
Merge branch 'main' into fail-counter-v2
runame 7793429
Revert outdated change
runame 98051d2
Simplify no warnings assertion
runame 8ea571e
Remove leftover variable
runame c098c6a
Improve readability of call count check
runame 701e5e9
Merge branch 'main' into fail-counter-v2
runame 16853ea
Further improve readability of test
runame File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @runame ,
It seems these two tests do not discovered by the test discovery; if you check the CI before and after this pull request, the total number of tests ran does not change, and I believe this is due to those two classes here are still considered as abstract class so they don't get instantiated at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the two tests are actually discovered and run by the CI. Note that the "before" CI does not actually reflect the state before the two tests are added, since it is merely the PR that was created before it (#63 before #64). See the commit history for the actual order in which the PRs were merged. Now we can compare the CI before and after the two tests were added and see that the number of tests increased from 23 to 25.
Finally, I also verified locally that commenting out the two tests results in two less tests being run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I check the commit history, and you are right the two tests are discovered in here.
Now it seems the issue is happened in the the Meta internal test discovery could not find those two tests so I was wondering the current setup is the culprit. If I run the
shampoo_types_test.py
in Meta internal, it will only discover 5 test cases, but it should be 7 test cases.We might need a different setup to accommodate this unfortunately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting. Do you have any idea why the tests are not discovered internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic
is the reason because if we don't use that, it will be discovered. However, how and why are something I don't know, I will create a minimum example withGeneric
to verify this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#72 is a better design to resolve this but we might want to figure this out in the future for curiosity sake.