Hi,
I arbitrarily get the below error message.
THCudaCheck FAIL file=/pytorch/aten/src/THC/generic/THCTensorCopy.cpp line=20 error=77 : an illegal memory access was encountered

Usually there is no error trace. Just this message. I am using CUDA_LAUNCH_BLOCKING=1. I see there are several posts of similar nature. However, I do not see any definitive solution. I am pretty sure there is no illegal index problem as the code runs fine half the times. This error happens even before the 1st minibatch has processed.
The program does not crash after that but it does not move ahead either.
Any help appreciated. Thanks!