Closed icvplayer closed 2 years ago
Hi, If I set force_inplace to False, CUDA will report an error: RuntimeError: CUDA error: an illegal memory access was encountered. cudaCheckError() failed : an illegal memory access was encountered. Could you tell me why please?
Hi @icvplayer ,
This is likely due to your tensor not being contiguous in memory (of the gradients of it). You can wrap the function call around contiguous() calls.
contiguous()
Hi, If I set force_inplace to False, CUDA will report an error: RuntimeError: CUDA error: an illegal memory access was encountered. cudaCheckError() failed : an illegal memory access was encountered. Could you tell me why please?