Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Upgrade deprecated APIs in PyTorch 1.11 & clean out some legacy codes #1378

Closed

Conversation

horizon-blue
Copy link
Contributor

Summary:
PyTorch 1.11 was released last Thursday, which introduces a few Deprecation Warnings that were caught by our CI. This diff addresses those warnings by updating the relevant function calls.

It also caught my attention that some of the warnings come from our legacy inference module, which was kept around when we did the migration just in case "something happens." Now that the new inference has been out for a while, we can begin to clean out the legacy modules. In this diff I still kept some algorithms around because there are still some modules that depends on them -- in theory it should be safe to swap all of them out with the new implementation, though it's probably do that in a separate diff.

Differential Revision: D34833587

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Mar 14, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34833587

…facebookresearch#1378)

Summary:
Pull Request resolved: facebookresearch#1378

PyTorch 1.11 was released last Thursday, which introduces a few Deprecation Warnings that were [caught by our CI](https://github.com/facebookresearch/beanmachine/runs/5507917348?check_suite_focus=true). This diff addresses those warnings by updating the relevant function calls.

It also caught my attention that some of the warnings come from our legacy inference module, which was kept around when we did the migration just in case "something happens." Now that the new inference has been out for a while, we can begin to clean out the legacy modules. In this diff I still kept some algorithms around because there are still some modules that depends on them -- in theory it should be safe to swap all of them out with the new implementation, though it's probably do that in a separate diff.

Differential Revision: D34833587

fbshipit-source-id: 49ec4a344954c16952c9afdcec5ee4ecd5388a46
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34833587

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants