Cuda: Initialization Error

RuntimeError: cuda runtime error (3) : initialization error at /opt/conda/conda-bld/pytorch_1502008109146/work/torch/lib/THC/generic/THCTensorCopy.c:65

I keep getting the above error randomly. What ran fine a couple of days ago, is now throwing the above error. What is causing this? I’m not using DataParallel.

Edit: Noticed that it happens only when going from the 1st epoch to the 2nd. The problem is that nothing changes between the first epoch and the second.

Did you manage to solve your issue?

Is it related to:

"RuntimeError: CUDA driver error: initialization error"