How to fix 'The kernel appears to have died. It will restart automatically" caused by pytorch
I have a strange problem with Pytorch. When I use torch functions with tensors like tensor.reshape  or torch.transpose, I don't have any problems; even when I created networks, it's ok. However, when I want to train network my jupyter crashed.

I find where error is but I don't know why it is there and how to fix it.

I installed pytorch using conda. I have Ubuntu 18.04.
I don't have cuda.

If you are on Ubuntu you may not install PyTorch just via conda.

It can be:


Conda
Pip
LibTorch
From Source


So you have multiple options.

Go to this page and select Cuda to NONE, LINUX, stable 1.1, CONDA. 

conda install pytorch-cpu torchvision-cpu -c pytorch


If you have problems still, you may try also install PIP way.

pip3 install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl
pip3 install https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl


Hopefully some of these ways will work. 
