Thank you. My torchvision version is in fact outdated. However, I can’t update it for lack of permission. I found out that linalg from scipy somehow conflicted with my torchvision version. I swapped the import statements (FIST: scipy, SECOND: torchvision) and now it works.