I opened the follwing pull request to fix the issue I think I’m facing.
Avoid crash when doc is optimized away to None (-OO) by FremyCompany · Pull Request #3884 · pytorch/audio
Could someone take a look?