Photo by Marc Szeglat on Unsplash

Might be getting this issue when training deep learning models in PyTorch

I started learning PyTorch today, I first ran my jupyter notebook to train a simple CNN model in PyTorch, but you know what happened?

Kernel appears to have died and will restart automatically

Then, I write the whole code in a .py file and run using the command prompt. But, this time I get the below error.

Illegal instruction core dumped

I spent a lot of time on google and I didn’t find any solution for my CPU latptop.

NOTE: I don’t have a GPU. I have 10 years old intel Pentium laptop.


I used batch_size=1, and It worked.

I hope it will help you.