• Jay Mahadeokar's avatar
    bugfix data not in args · 6a7eb6ce
    Jay Mahadeokar authored
    Summary:
    D15214049 introduced a bug such that if a tasks args does not contain data, then it will give error
    ```
    File "/data/users/jaym/fbsource/fbcode/buck-out/dev/gen/deeplearning/projects/fairspeq/train#link-tree/train.py", line 119, in reload_train
       if len(args.data.split(":")) == 1:
    AttributeError: 'Namespace' object has no attribute 'data'
    ```
    
    This diff checks if data is in args to avoid above error.
    
    Reviewed By: myleott, jmp84
    
    Differential Revision: D15253373
    
    fbshipit-source-id: 14fb9ad878ee50f1b7583349bb17e29c03c40815
    6a7eb6ce
train.py 16.6 KB