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
[jit] better message for bad type annotation #47464
Conversation
This pull request was exported from Phabricator. Differential Revision: D24764886 |
ah the PR still has unrelated contents from a different PR.. but the diff is clean |
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.
It seems that this is stacked on top of #45645 - if you unstack I think we can land this separately.
Summary: Pull Request resolved: pytorch#47464 ``` ValueError: Unknown type annotation: 'typing.Sequence[torch.Tensor]' at File "xxx.py", line 223 images = [x["image"].to(self.device) for x in batched_inputs] images = [(x - self.pixel_mean) / self.pixel_std for x in images] images = ImageList.from_tensors(images, self.backbone.size_divisibility) ~~~~~~~~~~~~~~~~~~~~~~ <--- HERE return images ``` Otherwise have no clue where the error is. Test Plan: sandcastle Differential Revision: D24764886 fbshipit-source-id: b28de389024c447b59eafd0b654d792fd3b15961
This pull request was exported from Phabricator. Differential Revision: D24764886 |
d938abd
to
1434e25
Compare
Codecov Report
@@ Coverage Diff @@
## master #47464 +/- ##
=======================================
Coverage 81.44% 81.45%
=======================================
Files 1798 1798
Lines 188223 188223
=======================================
+ Hits 153306 153309 +3
+ Misses 34917 34914 -3 |
This pull request has been merged in 24b549b. |
Summary:
Otherwise have no clue where the error is.
Test Plan: sandcastle
Differential Revision: D24764886