"vscode:/vscode.git/clone" did not exist on "3d9498dc957d0c9024a50bc3473d2f332c87368f"
  • Valentin Andrei's avatar
    Add multi-tensor optimizer version for SGD · 918abe42
    Valentin Andrei authored
    Summary:
    Added multi-tensor optimizer implementation for SGD, from `torch.optim._multi_tensor`. It can potentially provide ~5% QPS improvement by using `foreach` API to speed up the optimizer step.
    
    Using it is optional, from the configuration file, by specifying `SGD_MT` in the `SOLVER.OPTIMIZER` setting.
    
    Reviewed By: zhanghang1989
    
    Differential Revision: D30377761
    
    fbshipit-source-id: 06107f1b91e9807c1db5d1b0ca6be09fcbb13e67
    918abe42
test_optimizer.py 1.87 KB