Repository: stable-diffusion-webui
Issue: [Bug]: AttributeError: module 'torch' has no attribute 'cuda'
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Everything was working well, I then proceeded to update some extensions, and when i restarted stable, I got this error message


Already up to date.
venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\launch.py", line 360, in <module>
    prepare_environment()
  File "C:\ai\stable-diffusion-webui\launch.py", line 272, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "C:\ai\stable-diffusion-webui\launch.py", line 129, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "C:\ai\stable-diffusion-webui\launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\ai\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'torch' has no attribute 'cuda'


Press any key to continue . . .


### Steps to reproduce the problem

update some extensions, and when I restarted stable

### What should have happened?

Normal boot up 

### Commit where the problem happens

0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Brave

### Command Line Arguments

```Shell
COMMANDLINE_ARGS= --no-half-vae --listen --api --xformers --share --autolaunch --disable-safe-unpickle --enable-insecure-extension-access --gradio-auth :
```


### List of extensions

![image](https://user-images.githubusercontent.com/55672949/222262272-84dbd596-2ec1-458f-bf2a-0a6412e7cafe.png)


### Console logs

```Shell
Already up to date.
venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\launch.py", line 360, in <module>
    prepare_environment()
  File "C:\ai\stable-diffusion-webui\launch.py", line 272, in prepare_environment
    run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
  File "C:\ai\stable-diffusion-webui\launch.py", line 129, in run_python
    return run(f'"{python}" -c "{code}"', desc, errdesc)
  File "C:\ai\stable-diffusion-webui\launch.py", line 105, in run
    raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\ai\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'torch' has no attribute 'cuda'


Press any key to continue . . .
```


### Additional information

_No response_