I followed suggestion by Maxim to resolve the issue!
I downgraded from pytorch-1.10.2 and torchvision-0.11.3 to pytorch-1.9.0 and torchvision-0.10.0
to resolve the error. Also, I am using pip in anaconda and the current pip dependency resolver doesn’t account for all the packages installed. I had to manually downgrade torchaudio to version 0.9.0 to avoid issues with it.
pip install --upgrade torch==1.9.0
pip install --upgrade torchvision==0.10.0
pip install --upgrade torchaudio==0.9.0