I am running the command given on page https://pytorch.org/get-started/locally/ 7 to install pytorch locally. I have a GPU (GeForce GTX 1070), the latest version of NVIDIA driver (455.32.00) and have previously installed CUDA (11.1). However, conda automatically fetches a cpu-only pytorch package to install:
pkgs/main::pytorch-1.3.1-cpu_py27h62f834f_0
and then I couldn’t use pytorch with my GPU at all. Does any one know how to solve this issue?

The following packages will be downloaded:
package                    |            build
---------------------------|-----------------
_pytorch_select-0.1        |            cpu_0           3 KB
conda-4.8.4                |           py27_0         2.8 MB
ninja-1.9.0                |   py27hfd86e86_0         1.2 MB
pytorch-1.3.1              |cpu_py27h62f834f_0        24.9 MB
torchaudio-0.3.2           |             py27         3.7 MB  pytorch
torchvision-0.2.2          |             py_3          44 KB  pytorch
------------------------------------------------------------
                                       Total:        32.8 MB

The following NEW packages will be INSTALLED:
_pytorch_select    pkgs/main/linux-64::_pytorch_select-0.1-cpu_0
ninja              pkgs/main/linux-64::ninja-1.9.0-py27hfd86e86_0
torchaudio         pytorch/linux-64::torchaudio-0.3.2-py27
The following packages will be UPDATED:
conda                                       4.7.12-py27_0 --> 4.8.4-py27_0
pytorch            pytorch::pytorch-0.3.0-py27_cuda8.0.6~ --> pkgs/main::pytorch-1.3.1-cpu_py27h62f834f_0
torchvision        pytorch/linux-64::torchvision-0.2.0-p~ --> pytorch/noarch::torchvision-0.2.2-py_3