-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
tv_tensor -> TVTensor where it matters #7904
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7904
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New Failures, 2 Unrelated FailuresAs of commit da197bd with merge base d5f4cc3 (): NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
with pytest.raises(ValueError, match="return_type must be"): | ||
tv_tensors.set_return_type("typo") | ||
|
||
tv_tensors.set_return_type("tensor") |
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.
We do have a global setup teardown fixture to prevent any of this leaking, right? If so why set it to tensor and then do nothing with it?
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.
Yeah, we don't need it.
This follows up to #7828 (comment)
Co-authored-by: Philip Meier <[email protected]>
Summary: (Note: this ignores all push blocking failures!) Reviewed By: matteobettini Differential Revision: D48900380 fbshipit-source-id: 61a93172f4911f2e0261d6bea2a481e7210c33e7 Co-authored-by: Philip Meier <[email protected]>
Minor cleanup following up to #7894 (comment)
This is mostly just renamings in the docs + in
set_return_type
. Also added a minor test for input checks.