Read weight after setting CUDA device.