Replace assert with raise (#2579)
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
Showing
Please register or sign in to comment