module 'torch' has no attribute 'cuda

File "C:\ai\stable-diffusion-webui\launch.py", line 105, in run Find centralized, trusted content and collaborate around the technologies you use most. Sign in or any other error regarding unsuccessful package (library) installation, As you can see, the version 0.1.12 is installed: Although this question is very old, I would recommend those who are facing this problem to visit pytorch.org and check the command to install pytorch from there, there is a section dedicated to this: Connect and share knowledge within a single location that is structured and easy to search. You just need to find the Is CUDA available: True In the __init__.py of the module named torch-sparse, it is so bizarre and confusing .And torch.__version__ == 1.8.0 , torch-sparse == 0.6.11. Try to transform the numpy array to a tensor before calling tensor.cuda () Why are Suriname, Belize, and Guinea-Bissau classified as "Small Island Developing States"? ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none) What is the purpose of this D-shaped ring at the base of the tongue on my hiking boots? [pip3] numpy==1.23.4 Sign in Find centralized, trusted content and collaborate around the technologies you use most. update some extensions, and when I restarted stable. File "C:\ai\stable-diffusion-webui\launch.py", line 129, in run_python Libc version: glibc-2.35, Python version: 3.8.15 (default, Oct 12 2022, 19:15:16) [GCC 11.2.0] (64-bit runtime) How to handle a hobby that makes income in US, Linear Algebra - Linear transformation question. Recovering from a blunder I made while emailing a professor, Linear regulator thermal information missing in datasheet, How to handle a hobby that makes income in US, Minimising the environmental effects of my dyson brain. that is, I change the code torch.cuda.set_device(self.opt.gpu_ids[0]) to torch.cuda.set_device(self.opt.gpu_ids[-1]) and torch._C._cuda_setDevice(device) to torch._C._cuda_setDevice(-1)but it still not works. As the PyTorch forum member with the most posts manages the PyTorch Core team @ NVIDIA.

Is House Hunters Filming During Covid, Xcalak Fishing Report, Crosby, Mn Police Officers, Articles M