Repository: pytorch
Issue: Unable to import ``torch.linalg``
Labels: needs reproduction,triaged

### 🐛 Describe the bug

After installation, importing ``pytorch.linalg`` fails with the following message:

```sh
Traceback (most recent call last):
  File "./scripts/predict.py", line 8, in <module>
    from utils.misc import *
  File "./utils/misc.py", line 3, in <module>
    import torch.linalg
ModuleNotFoundError: No module named 'torch.linalg'
```

To reproduce it, run 

```python
import torch.linalg
```

However, when I run ``import torch``, it is successful. I suspect it is an installation issue, but I'm opening this just in case.

### Versions

Here is my conda environment with torch ``1.13.1``:

```sh
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
biopython                 1.79             py39h3811e60_1    conda-forge
blas                      1.0                         mkl  
ca-certificates           2023.01.10           h06a4308_0  
certifi                   2022.12.7        py39h06a4308_0  
charset-normalizer        3.0.1                    pypi_0    pypi
cudatoolkit               11.3.1               h2bc3f7f_2  
easydict                  1.9                        py_0    conda-forge
flit-core                 3.6.0              pyhd3eb1b0_0  
idna                      3.4                      pypi_0    pypi
intel-openmp              2021.4.0          h06a4308_3561  
ld_impl_linux-64          2.38                 h1181459_1  
libffi                    3.4.2                h6a678d5_6  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libstdcxx-ng              11.2.0               h1234567_1  
libuv                     1.44.2               h5eee18b_0  
mkl                       2021.4.0           h06a4308_640  
mkl-service               2.4.0            py39h7e14d7c_0    conda-forge
mkl_fft                   1.3.1            py39h0c7bc48_1    conda-forge
mkl_random                1.2.2            py39hde0f152_0    conda-forge
ncurses                   6.4                  h6a678d5_0  
numpy                     1.23.5           py39h14f4228_0  
numpy-base                1.23.5           py39h31eccc5_0  
openssl                   1.1.1t               h7f8727e_0  
pillow                    9.4.0                    pypi_0    pypi
pip                       22.3.1           py39h06a4308_0  
python                    3.9.16               h7a1cb2a_0  
python_abi                3.9                      2_cp39    conda-forge
pytorch-mutex             1.0                        cuda    pytorch
readline                  8.2                  h5eee18b_0  
requests                  2.28.2                   pypi_0    pypi
setuptools                65.6.3           py39h06a4308_0  
six                       1.16.0             pyh6c4a22f_0    conda-forge
sqlite                    3.40.1               h5082296_0  
tbb                       2021.7.0             hdb19cb5_0  
tk                        8.6.12               h1ccaba5_0  
torch                     1.13.1+cu116             pypi_0    pypi
torchaudio                0.13.1+cu116             pypi_0    pypi
torchvision               0.14.1+cu116             pypi_0    pypi
typing_extensions         4.4.0            py39h06a4308_0  
tzdata                    2022g                h04d1e81_0  
urllib3                   1.26.14                  pypi_0    pypi
wheel                     0.38.4           py39h06a4308_0  
xz                        5.2.10               h5eee18b_1  
zlib                      1.2.13               h5eee18b_0 
```