-
Notifications
You must be signed in to change notification settings - Fork 3.6k
update tests with new auto_opt api #5466
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
Conversation
Borda
left a comment
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.
correct
justusschock
left a comment
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.
@rohitgr7 I added some suggestions, since the way you implemented it, you overwrite the property, but this way we just change the value used by the property.
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| def __init__(self): | ||
| super().__init__() | ||
| self.sequential_module = nn.Sequential(torch.nn.Linear(32, 32), nn.ReLU(), nn.Linear(32, 2)) | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class SequentialModelRPCAutomatic(SequentialModelRPCManual): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
|
|
||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
| class TestModel(BoringModel): | ||
| def __init__(self): | ||
| super().__init__() | ||
| self.automatic_optimization = False |
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.
| self.automatic_optimization = False | |
| self._automatic_optimization = False |
Codecov Report
@@ Coverage Diff @@
## master #5466 +/- ##
========================================
+ Coverage 44% 93% +49%
========================================
Files 135 135
Lines 9875 10015 +140
========================================
+ Hits 4380 9338 +4958
+ Misses 5495 677 -4818 |
* update tests with new auto_opt api * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]>
What does this PR do?
updates tests missed here #5169
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃