Getting an error in module 4 and assignment 2 in week2 in ResNet50 function

The use of “name” strings for the various layers was only used in the previous version of the course. That was eliminated when they upgraded the course to TF2 in April of 2021. So it looks like perhaps you are still in the old version of the course or maybe have imported your notebook from the old version of the course. It is recommended that you get a fresh copy of the assignment (see the relevant topic on the FAQ Thread) and then go through carefully and compare your code to what the new notebook is asking you to do.

Also note that you filed this question under “General Discussion” which may be why it took a while to get noticed. You’ll have better luck if you post under the correct course. I’ve moved this for you to DLS Course 4.