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

convert torch.split return to list in RAFT #7597

Merged
merged 5 commits into from
May 19, 2023
Merged

convert torch.split return to list in RAFT #7597

merged 5 commits into from
May 19, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented May 17, 2023

pytorch/pytorch#100655 introduced a fix for the annotation. Meaning, the return type always was a tuple, but it was annotated as list. Thus, we also now need to fix our annotation or CI will fail. For example: https://github.com/pytorch/vision/actions/runs/5001904005/jobs/8961199909

I don't know if this needs to be JIT scriptable. If so, this patch is not sufficient, since Tuple[Tensor, ...] is not supported by JIT. We need to actually convert into a list then.

@pmeier pmeier requested a review from NicolasHug May 17, 2023 10:48
@pytorch-bot
Copy link

pytorch-bot bot commented May 17, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7597

Note: Links to docs will display an error until the docs builds have been completed.

❌ 26 New Failures

As of commit 2e3ffe8:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pmeier pmeier added the other if you have no clue or if you will manually handle the PR in the release notes label May 17, 2023
@pmeier
Copy link
Collaborator Author

pmeier commented May 17, 2023

@NicolasHug
Copy link
Member

NicolasHug commented May 17, 2023

@pmeier
Copy link
Collaborator Author

pmeier commented May 17, 2023

Ok, let me convert to list then. Previously, JIT seemed to have ignored that the return type is Tuple[Tensor, ...] while we actually annotate List[Tensor] 🙄

@pmeier pmeier changed the title fix torch.split return annotation in RAFT convert torch.split return to list in RAFT May 18, 2023
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stamping, thanks Philip

@pmeier pmeier merged commit d2f7486 into pytorch:main May 19, 2023
@pmeier pmeier deleted the lint branch May 19, 2023 11:27
@github-actions
Copy link

Hey @pmeier!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

facebook-github-bot pushed a commit that referenced this pull request May 23, 2023
Reviewed By: vmoens

Differential Revision: D46071410

fbshipit-source-id: 043b40a2baee2bc17da658eafb27a55ab8f50c61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed other if you have no clue or if you will manually handle the PR in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants