Device-side assert triggered

Hello, when I run a script using CUDA_VISIBLE_DEVICES=1 to specify a GPU. But I observe that my tensor was on GPU 0 and it caused a RuntimeError: ‘cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/THCTensorCopy.cu:100’. What is the cause the problem? I use pytorch 0.2. Thanks!