Repository: pytorch
Issue: Always install cpu version automatically
Labels: module: binaries,triaged

### 🐛 Describe the bug

Hi!

I use following cmd to install pytorch
```
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
```

however I got the result:

```
## Package Plan ##

  environment location: D:\anaconda3

  added / updated specs:
    - cudatoolkit=10.2
    - pytorch==1.12.1
    - torchaudio==0.12.1
    - torchvision==0.13.1


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-22.9.0               |   py38haa95532_0         888 KB  defaults
    cudatoolkit-10.2.89        |       h74a9793_1       317.2 MB  defaults
    libuv-1.40.0               |       he774522_0         255 KB  defaults
    pytorch-1.12.1             |      py3.8_cpu_0       133.8 MB  pytorch
    pytorch-mutex-1.0          |              cpu           3 KB  pytorch
    torchaudio-0.12.1          |         py38_cpu         3.5 MB  pytorch
    torchvision-0.13.1         |         py38_cpu         6.2 MB  pytorch
    ------------------------------------------------------------
                                           Total:       461.9 MB

The following NEW packages will be INSTALLED:

  cudatoolkit        anaconda/pkgs/main/win-64::cudatoolkit-10.2.89-h74a9793_1
  libuv              anaconda/pkgs/main/win-64::libuv-1.40.0-he774522_0
  pytorch            pytorch/win-64::pytorch-1.12.1-py3.8_cpu_0
  pytorch-mutex      pytorch/noarch::pytorch-mutex-1.0-cpu
  torchaudio         pytorch/win-64::torchaudio-0.12.1-py38_cpu
  torchvision        pytorch/win-64::torchvision-0.13.1-py38_cpu

The following packages will be UPDATED:

  conda               pkgs/main::conda-4.9.2-py38haa95532_0 --> anaconda/pkgs/main::conda-22.9.0-py38haa95532_0


Proceed ([y]/n)?
```

I wonder why conda install cpu version automatically? How to install gpu version?

This is my hardware information:
```
Tue Jan 17 10:04:01 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 516.94       Driver Version: 516.94       CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ... WDDM  | 00000000:65:00.0  On |                  N/A |
|  0%   43C    P8    20W / 370W |    885MiB / 24576MiB |      6%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
```

Could you please give me some advice? Thanks in advance.

### Versions

pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2

cc @seemethere @malfet @osalpekar @atalman @ezyang