If I set the num_workers to be 8 (or 4), then after hundreds of iterations, I got error “RuntimeError: DataLoader worker (pid 56901) is killed by signal: Killed.”
I searched related topics, some suggested “num_workers=0”. So I set it to be 0 but after hundreds of iterations, I still got killed. This time, only “Killed” is given. No other hints.
The top output and the training output are as follows:

Screen Shot 2018-10-05 at 23.51.18.png1120×162 46.2 KB


Screen Shot 2018-10-06 at 00.23.03.png1092×1054 235 KB