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

Undeprecate int constants for interpolation #7241

Merged
merged 9 commits into from
Feb 14, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 14, 2023

Closes #7205. TL;DR this PR undoes #7176, #5974, #5898 for the integer inputs for interpolation mode. They are now fully supported again and no longer emit a deprecation warning. I'll send a follow-up PR to add this functionality to the prototype transforms as well.

cc @vfdev-5

@pmeier pmeier changed the title Undeprecate inter constants for interpolation Undeprecate int constants for interpolation Feb 14, 2023
@pmeier pmeier marked this pull request as ready for review February 14, 2023 08:41
@pmeier pmeier requested review from vfdev-5 and NicolasHug February 14, 2023 08:41
@pmeier pmeier added module: transforms deprecation revert(ed) For reverted PRs, and PRs that revert other PRs labels Feb 14, 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.

Some first round but this looks good. According to the failing test is looks like we still have some remnants of _pil_constants.py in a few places

@pmeier pmeier requested a review from NicolasHug February 14, 2023 09:59
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.

Thanks a lot Philip.

Do we.. need to bring back support for it on the v2 transforms as well? Let's mark it as "nice to have" on #7217?

@NicolasHug NicolasHug merged commit b570f2c into pytorch:main Feb 14, 2023
@pmeier pmeier deleted the undeprecate-interpolation branch February 14, 2023 10:05
facebook-github-bot pushed a commit that referenced this pull request Mar 28, 2023
Reviewed By: vmoens

Differential Revision: D44416623

fbshipit-source-id: e404afad4f4e9cab00c0365410cdeb588179378b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed deprecation module: transforms revert(ed) For reverted PRs, and PRs that revert other PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revert removal and deprecation of int values for interpolation?
3 participants