URL fetch failure when tried to fetch the pretrained neural nets (ResNet) stored in tensorflow
Below is the specific screenshot when I ran the code
![image](https://user-images.githubusercontent.com/115084467/227956932-59dd811e-fa9e-481b-90ae-1daf55b3bf88.png)
 @Hongzhe12345,
There might be some network issues which downloading the file and also the shape mis-match which cannot be solved except changing the architecture according to weights because vectors shape mis-match cause problems.

I tried to execute the code and it was executed without any issue/error.
```
from keras.applications.resnet import ResNet50
base_model = tf.keras.applications.ResNet50(include_top = False, weights = 'imagenet', input_shape=(512,512,3),pooling='avg')
```
Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/a6c1ec58601e03d0ea049be61ebd2869/untitled1056.ipynb) and below screenshot for the reference and the [link](https://stackoverflow.com/questions/60119041/failed-to-load-keras-resnet50-model-offline-using-weight-file).

![Screenshot 2023-03-28 9 20 27 AM](https://user-images.githubusercontent.com/81610181/228123930-3e2f7c6c-a07f-4612-81b1-770dd4e83cac.png)

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/60130">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/60130">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

tf 2.11

### Custom Code

Yes

### OS Platform and Distribution

Ubuntu 20.04, Linux 5.4.0

### Mobile device

_No response_

### Python version

3.8

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
Hi,

When I tried to import the pre-trained ResNet in tensorflow, it always gave me 403 forbidden error which I have no clue to solve. What might cause this error?
```


### Standalone code to reproduce the issue

```shell
The code is:

base_model = tf.keras.applications.ResNet50(weights = 'imagenet', include_top = False, input_shape = (512,512,3))
for layer in base_model.layers:
    layer.trainable = False
```


### Relevant log output

_No response_</details>