• Yanghan Wang's avatar
    upgrade pytorch-lightning version to 1.8.6 · 9e93852d
    Yanghan Wang authored
    Summary:
    Pull Request resolved: https://github.com/facebookresearch/d2go/pull/453
    
    Previous diffs updated the LRScheduler to public version (eg. https://github.com/facebookresearch/detectron2/pull/4709), this also requires newer version of pytorch-lightning. This diff upgrades the lightning version to 1.8.6, also fixes some deprecated call sites of old lightning versions.
    - `deepcopy` seems to be supported now, remove `_deepcopy` (there's now not allowed to access `trainer` attributed when it is `None`)
    - `dataloader_idx` is removed from `on_train_batch_start`.
    - stop using `_accelerator_connector` (the AcceleratorConnector doesn't have those attributes anymore).
    - deprecated `on_pretrain_routine_end` -> `on_fit_start`
    
    Reviewed By: YanjunChen329
    
    Differential Revision: D42319019
    
    fbshipit-source-id: ba46abbd98da96783e15d187a361fda47dc7d4d6
    9e93852d
setup.py 2.89 KB