Thanks for the information. Since the script execution just hangs and you had to kill it via CTRL+C, you won’t get a proper backtrace.
Anyway, since the code runs fine on another machine, we should focus on your current setup.
If you are using conda, could you create a clean new virtual environment via
conda create -n pytorch_stable Python=3.7 Anaconda
...
conda activate pytorch_stable

And install the latest stable release via the command from the website 4?
Also, some specs about the laptop could be helpful.
E.g. which CPU is it using etc.
I’ve seen some issues with old CPUs, which didn’t support some instructions (I think it was related to AVX instructions, but am not sure).