• Dmytro Okhonko's avatar
    Move save/load checkpoint functions to utils · cd1e5c09
    Dmytro Okhonko authored
    Summary:
    Move `load_checkpoint`, `save_checkpoint` and `reload_train` from train.py to checkpoint_utils.py
    Move `get_perplexity` from train.py to utils.py.
    This will make train.py lighter and allow us to reuse all this utils functionality when fairseq is used as external library.
    
    Reviewed By: myleott
    
    Differential Revision: D15289607
    
    fbshipit-source-id: 4b7c95225ac22e402bcda3497811361809110df1
    cd1e5c09
test_train.py 4.57 KB