"RuntimeError: DataLoader worker (pid 4161) is killed by signal: Killed.
This is the error I've encountered when I was running Pytorch program. It means that the memory of the system is not big enough to run the program. Thus, I found there is no swap space in my VM instance. To fix this issue, I add new swap space to my system.