Replace `runtime_error` exception with `TORCH_CHECK` in TorchAudio ffmpeg dir (1/2) (#2550)
Summary: `std::runtime_error` does not preserve the C++ stack trace, so it is unclear to users what went wrong internally. PyTorch's `TORCH_CHECK` macro allows to print C++ stack trace when `TORCH_SHOW_CPP_STACKTRACES` environment variable is set to 1. Pull Request resolved: https://github.com/pytorch/audio/pull/2550 Improves assertion for TorchAudio ffmpeg directory Reviewed By: mthrok Differential Revision: D37914953 fbshipit-source-id: 7704c41bb88b0616ae2e73961a5496bc0d95cf13
Showing
Please register or sign in to comment