pytorch / pytorch/vision

Removal schedule for legacy model builder API

Open
#7,187 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Although our documentation is explicit

https://github.com/pytorch/vision/blob/a05d81796dd4743e8b16797a43e9166f0cdb90c7/docs/source/models.rst?plain=1#L82

our runtime warnings are really vague:

Apart from not committing to an explicit removal date, we are not even committing to removing this in general, i.e.

may be removed

In https://github.com/pytorch/vision/pull/7176#discussion_r1098367538 we decided to not remove this functionality together with all other scheduled removals for 0.15.

However, we should decide on the future of this. Here are some options that I see:

  1. Make the date in the runtime warnings explicit and remove afterwards. Abiding by our own BC policy, we probably need to use 0.17 as removal date. At that point, users saw the warning for 4 releases and thus roughly 1 year, which gave them plenty time to migrate.
  2. Remove the documentation of the legacy API, but keep supporting it silently, i.e. no warnings. Going this route would mean that new users won't know about the legacy API, but old code doesn't need to be updated.
  3. Keep everything as is.

My order of preference is 1. > 2. > 3.

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 reading the legacy API documentation in docs/source/models.rst and the related warning paths in torchvision/models/_utils.py. Review the BC policy and the discussion in pull request 7176. Done means reaching a decision on the legacy API's future and updating the documented removal schedule and runtime warnings accordingly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.