-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix type hints of tuner/batch_size_scaling.py #13518
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
Merged
otaj
merged 30 commits into
Lightning-AI:master
from
ar90n:fix-type-hints-tuner-batch_size_scaling.py
Sep 29, 2022
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b6cda17
Fix type hints
ar90n 3f1d70c
fix
ar90n ab9bcba
Use Any to use data.py
ar90n 8361712
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fb088c3
Remove unused import
ar90n b5270c7
Fix missing import
ar90n 61e3c8f
Update src/pytorch_lightning/tuner/batch_size_scaling.py
ar90n 4d952ec
Remove unneccesary fix
ar90n 5419848
Use assert to narrow types
ar90n 1a1e265
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ca45a66
Add None check explicitly
ar90n d23e262
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 122c930
Simplify type narrowing
ar90n c1f3842
Merge remote-tracking branch 'origin/master' into fix-type-hints-tune…
ar90n 3344c48
Fix wrong code merging
ar90n 5c4b360
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ba2ec9a
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
Borda 0897b6c
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
otaj a93c45e
merge master
27e9cda
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
Borda e8754de
,
Borda 319c4ff
..
Borda c54c13e
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
Borda 1ced0a8
Merge remote-tracking branch 'origin/master' into fix-type-hints-tune…
ar90n 28ac120
Add type hints
ar90n ffeb484
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d7f7388
Add property type annotation
ar90n c6c793b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ad06e18
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
otaj 14336bc
Merge branch 'master' into fix-type-hints-tuner-batch_size_scaling.py
otaj 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 hidden or 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 hidden or 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 hidden or 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
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.
Why is this annotated in the class definition instead of in the
__init__
?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.
@carmocca
This is my mistake. And my modification wasn't in time.
In the head of my fork branch, this annotation is moved into init.
May I create a new PR to move this annotation into init ?
ar90n@7076c1b
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.
Yes, please. Thank you 💜