Hi,
Given that this code is from several versions back, it will be a bit of work to update it (even more if you don’t know pytorch) as you will need to check the BC-breaking changes in the release notes and update the code accordingly.
If you just want to run this code to try, maybe a safer alternative is to install an old version of pytorch from here https://pytorch.org/get-started/previous-versions/
Then if you decide that you want to use it further, you can spend the time to upgrade the code to run with newer versions.