pytorch / pytorch/vision

Use OpInfos for operator tests

Open
#5,969 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature module: tests triaged
Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug

Defining OpInfos for torchvision's operators would make it possible to run stock PyTorch correctness tests (that are generic over operators) in torchvision. For example, I want to add meta function support to torchvision operators but my preference is to reuse the testing infrastructure in PyTorch.

cc @pmeier @mruberry I don't know if it is actually supported to run tests in PyTorch with extra opinfos, doesn't feel like it.

Versions

master

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by determining whether PyTorch's generic correctness tests support extra OpInfos, then review how torchvision's operators could define OpInfos for those tests. Done means torchvision operators can use the stock PyTorch operator tests, including the intended path for adding meta function support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.