-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Replace asserts with exceptions #5587
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
jdsgomes
merged 60 commits into
pytorch:main
from
jdsgomes:replace_asserts_with_exceptions
Mar 15, 2022
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
dfb2862
replace most asserts with exceptions
jdsgomes 40d0528
fix formating issues
jdsgomes 13bfd80
fix linting and remove more asserts
jdsgomes 45ecd61
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes f522368
fix regresion
jdsgomes 23bd022
Merge branch 'replace_asserts_with_exceptions' of github.com:jdsgomes…
jdsgomes 6a87e4d
fix regresion
jdsgomes e179358
fix bug
jdsgomes 30b1714
apply ufmt
jdsgomes 488d2af
apply ufmt
jdsgomes 38d2d01
fix tests
jdsgomes 7d42574
fix format
jdsgomes dc6856b
fix None check
jdsgomes 2c56adc
fix detection models tests
jdsgomes aebca6d
non scriptable any
jdsgomes d54b582
add more checks for None values
jdsgomes 36d2174
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes 98c2702
fix retinanet test
jdsgomes bdab5f4
Merge branch 'replace_asserts_with_exceptions' of github.com:jdsgomes…
jdsgomes 4900653
fix retinanet test
jdsgomes d5ccbf1
Update references/classification/transforms.py
jdsgomes de2f4b7
Update references/classification/transforms.py
jdsgomes 275012a
Update references/optical_flow/transforms.py
jdsgomes fddd2ac
Update references/optical_flow/transforms.py
jdsgomes 7e60b46
Update references/optical_flow/transforms.py
jdsgomes 6c2e94f
make value checks more pythonic:
jdsgomes 0a78c6b
fix merge
jdsgomes cb95c97
Update references/optical_flow/transforms.py
jdsgomes ff8f557
make value checks more pythonic
jdsgomes 0598990
Merge branch 'replace_asserts_with_exceptions' of github.com:jdsgomes…
jdsgomes abafdb2
make more checks pythonic
jdsgomes 5b30ce3
fix bug
jdsgomes ade3364
appy ufmt
jdsgomes 2f4ecc1
fix tracing issues
jdsgomes 981617b
fib typos
jdsgomes fec7d4b
fix lint
jdsgomes bdd913b
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes ca59cd7
remove unecessary f-strings
jdsgomes 3391f00
Merge branch 'replace_asserts_with_exceptions' of github.com:jdsgomes…
jdsgomes 81ac57c
fix bug
jdsgomes 7affc95
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes 8dc76e2
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes e68c1be
Update torchvision/datasets/mnist.py
jdsgomes d92a0f9
Update torchvision/datasets/mnist.py
jdsgomes 4a30fc9
Update torchvision/ops/boxes.py
jdsgomes e4f214d
Update torchvision/ops/poolers.py
jdsgomes 9e9ca6d
Update torchvision/utils.py
jdsgomes b234e08
address PR comments
jdsgomes 1a45e1e
Update torchvision/io/_video_opt.py
jdsgomes 8437088
Update torchvision/models/detection/generalized_rcnn.py
jdsgomes cff417a
Update torchvision/models/feature_extraction.py
jdsgomes 1d9e3d3
Update torchvision/models/optical_flow/raft.py
jdsgomes ce06c29
address PR comments
jdsgomes 2b1870f
addressing further pr comments
jdsgomes 851adb2
fix bug
jdsgomes a915f1f
remove unecessary else
jdsgomes f41e115
apply ufmt
jdsgomes ee21d2e
last pr comment
jdsgomes d000238
replace RuntimeErrors
jdsgomes d77739b
Merge branch 'main' into replace_asserts_with_exceptions
jdsgomes 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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.