Repository: stable-diffusion-webui
Issue: [Bug]: Updated to torch-1.13.1+cu117 and now have unfixable runtime error
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?

All was well with torch 1.12.1+cu113.  I followed the suggested update to v. 1.13.1+cu117 when starting webui.bat and despite having reinstalled v. 1.12.1+cu113 using pip, - no joy.  The runtime error persists:  cuDNN error: CUDNN_STATUS_INTERNAL_ERROR You can try to repro this exception using the following code snippet. If that doesn't trigger the error, please include your original repro script when reporting this issue. import torch torch.backends.cuda.matmul.allow_tf32 = True torch.backends.cudnn.benchmark = True torch.backends.cudnn.deterministic = False torch.backends.cudnn.allow_tf32 = True data = torch.randn([2, 4, 64, 64], dtype=torch.half, device='cuda', requires_grad=True) net = torch.nn.Conv2d(4, 320, kernel_size=[3, 3], padding=[1, 1], stride=[1, 1], dilation=[1, 1], groups=1) net = net.cuda().half() out = net(data) out.backward(torch.randn_like(out)) torch.cuda.synchronize() ConvolutionParams memory_format = Contiguous data_type = CUDNN_DATA_HALF padding = [1, 1, 0] stride = [1, 1, 0] dilation = [1, 1, 0] groups = 1 deterministic = false allow_tf32 = true input: TensorDescriptor 0000024CAB9E3C30 type = CUDNN_DATA_HALF nbDims = 4 dimA = 2, 4, 64, 64, strideA = 16384, 4096, 64, 1, output: TensorDescriptor 0000024CA49D4120 type = CUDNN_DATA_HALF nbDims = 4 dimA = 2, 320, 64, 64, strideA = 1310720, 4096, 64, 1, weight: FilterDescriptor 0000024CBBFE1170 type = CUDNN_DATA_HALF tensor_format = CUDNN_TENSOR_NCHW nbDims = 4 dimA = 320, 4, 3, 3, Pointer addresses: input: 0000000B6E3F0000 output: 0000000B87500000 weight: 0000000B05ECA400 

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...
As far as I can tell, simply installing torch v.  v. 1.13.1+cu117 as proposed when starting the webui-user.bat and the foregoing problem will develop.  Reverting back to prior version of torch did not fix problem.

### What should have happened?

Image should render.

### Commit where the problem happens

6cff4401824299a983c8efc347b4a2b

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

Windows

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

Mozilla Firefox

### Command Line Arguments

```Shell
No.  All stock.
```


### Additional information, context and logs

As above:  cuDNN error: CUDNN_STATUS_INTERNAL_ERROR You can try to repro this exception using the following code snippet. If that doesn't trigger the error, please include your original repro script when reporting this issue. import torch torch.backends.cuda.matmul.allow_tf32 = True torch.backends.cudnn.benchmark = True torch.backends.cudnn.deterministic = False torch.backends.cudnn.allow_tf32 = True data = torch.randn([2, 4, 64, 64], dtype=torch.half, device='cuda', requires_grad=True) net = torch.nn.Conv2d(4, 320, kernel_size=[3, 3], padding=[1, 1], stride=[1, 1], dilation=[1, 1], groups=1) net = net.cuda().half() out = net(data) out.backward(torch.randn_like(out)) torch.cuda.synchronize() ConvolutionParams memory_format = Contiguous data_type = CUDNN_DATA_HALF padding = [1, 1, 0] stride = [1, 1, 0] dilation = [1, 1, 0] groups = 1 deterministic = false allow_tf32 = true input: TensorDescriptor 0000024CAB9E3C30 type = CUDNN_DATA_HALF nbDims = 4 dimA = 2, 4, 64, 64, strideA = 16384, 4096, 64, 1, output: TensorDescriptor 0000024CA49D4120 type = CUDNN_DATA_HALF nbDims = 4 dimA = 2, 320, 64, 64, strideA = 1310720, 4096, 64, 1, weight: FilterDescriptor 0000024CBBFE1170 type = CUDNN_DATA_HALF tensor_format = CUDNN_TENSOR_NCHW nbDims = 4 dimA = 320, 4, 3, 3, Pointer addresses: input: 0000000B6E3F0000 output: 0000000B87500000 weight: 0000000B05ECA400