Issue with nightly-gpu docker image
@zndr27 Could you try to use TF v2.13 instead of the nightly as it might not be stable.  Please have a look at the compatible [versions](https://www.tensorflow.org/install/source#tested_build_configurations) as well. Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61607">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61607">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.15.0-dev20230816

### Custom code

Yes

### OS platform and distribution

Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.11

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When using the tensorflow/tensorflow:nightly-gpu docker image I get an error saying the "DNN library is not found"

However, when I change the base image to tensorflow/tensorflow:latest-gpu my code works fine.

Perhaps the nightly image broke something with the cuda / cudnn library paths?

### Standalone code to reproduce the issue

```shell
It seems that using a Conv1D layer is what causes the issue... see the log output below.
```


### Relevant log output

```shell
Detected at node 'peak_conv_1/Conv1D' defined at (most recent call last):
Node: 'peak_conv_1/Conv1D'
DNN library is not found.
         [[{{node peak_conv_1/Conv1D}}]] [Op:__inference_train_step_224831]
```
