Your machine might be lacking a proper installation of NVIDIA drivers, the GPU might not be recognized (or could be too old), or other errors could prevent PyTorch from using the GPU, so we would need more information to further help out.