I installed pytorch 1.7 and cuda 11
then I start learning pytorch but when I implement the code in the following link:
https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html
using jupyter notebook I faced this error:
the kernel appears to have died. it will restart automatically.
I try the following:
first: downgrade to cuda 10.2
then try again with jupyter notebook I face the same error and when trying to rerun the cell that cause the error in the forth step I found the following error:
TypeError: Caught TypeError in DataLoader worker process 0
and try to set num_worker to zero. the cell required to redefine some predefined cells but in vain.
second: I implement the code in simple .py file and found the following error:
Illegal instruction (core dumped)
and found the problem in following lines using print statements:
loss.backward()
optimizer.step()
How can I fix this problem?
Thanks in advance.