Code stopping with text "Killed"?

I’m running some pytorch code and it will randomly stop and output the text “Killed”. I don’t see that anywhere in my code so just wondering where it is coming from and what might be causing it?

Edit: Never mind, looks like this is a python thing that the program took up too much resources somewhere.


I encountered the same issue. When you said it took up too much resources, are you referring to the GPU?

I believe it was RAM, fixed it by making a smaller network.

1 Like

The Linux kernel has a mechanism to kill processes taking up all CPU ram.

“Killed” sounds like the typical output in that case, in sudo dmesg you’ll see log entries about “OOM”.

Best regards