Skip to content
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

Merged
merged 5 commits into from
Aug 30, 2023

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Aug 30, 2023

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.

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 30, 2023

🔗 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 Failures

As of commit da197bd with merge base d5f4cc3 (image):

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")
Copy link
Collaborator

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?

Copy link
Member Author

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)

torchvision/tv_tensors/_torch_function_helpers.py Outdated Show resolved Hide resolved
@NicolasHug NicolasHug merged commit 25ec3f2 into pytorch:main Aug 30, 2023
56 of 63 checks passed
facebook-github-bot pushed a commit that referenced this pull request Sep 6, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants