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

Commits on Mar 15, 2022

  1. Upgrade deprecated APIs in PyTorch 1.11 & clean out some legacy codes (

    …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
    horizon-blue authored and facebook-github-bot committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    2596d2a View commit details
    Browse the repository at this point in the history