• Piyush Soni's avatar
    Replace assert with raise (#2579) · 0f4e1e8c
    Piyush Soni authored
    Summary:
    `assert` is not executed when running in optimized mode.
    
    This commit replaces all instances of "assert" in /fbcode/pytorch/audio/torchaudio/functional/functional.py
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/2579
    
    Reviewed By: mthrok
    
    Differential Revision: D38158280
    
    fbshipit-source-id: f8d7fca1c8f9b3955c6ca312b16947eb12894d81
    0f4e1e8c
functional.py 79.5 KB