• Stas Bekman's avatar
    DataParallel fixes (#5733) · 35cb101e
    Stas Bekman authored
    * DataParallel fixes:
    
    1. switched to a more precise check
    -        if self.args.n_gpu > 1:
    +        if isinstance(model, nn.DataParallel):
    
    2. fix tests - require the same fixup under DataParallel as the training module
    
    * another fix
    35cb101e
run_squad.py 33.4 KB