• moto's avatar
    Add download utility specialized for torchaudio (#2283) · 64b98521
    moto authored
    Summary:
    In recent updates, torchaudio added features that download assets/models from
    download.pytorch.org/torchaudio.
    
    To reduce the code duplication, the implementations uses utilities from
    ``torch.hub``, but still, there are patterns repeated in implementing
    the fetch mechanism, notably cache and local file path handling.
    
    This commit introduces the utility function that handles
    download/cache/local path management that can be used for
    fetching pre-trained model data.
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/2283
    
    Reviewed By: carolineechen
    
    Differential Revision: D35050469
    
    Pulled By: mthrok
    
    fbshipit-source-id: 219dd806f9a96c54d2d31e981c1bbe282772702b
    64b98521
conftest.py 2.12 KB