C4W2Assisgment2-TFOpLambda vs TensorFlowOpLayer

Hey, i am having kind of strange error: In the Exercise 2 - alpaca_model I do follow the instructions in the task and I get in the “summary(model2)” the TFOpLambda layers but it should be TensorFlowOpLayer. I mean in the task we are supposed to edit the last top two layers but the erro seems to result from the layers somewhere in the middle.
Pls help!

Are you running the assignment on the course website or somewhere else? I have seen errors like this caused by different versions of TF …

Well yes i am running it on my Jupyter Notebook. I also came acroos some comments indicating that it may be caused because of the versions. So i think i need to downgrade my TF.

Yes, if you are running locally, then you may run into “versionitis” problems. The courses were last updated in April of 2021, so have the versions of everything from python all the way up to TF that were current then. The world of python does not hold still for very long. :scream_cat:

There are tools that are specifically designed to deal with this issue, e.g. conda (Anaconda), but they are not simple to use. There are no official instructions for duplicating the course environment, but here’s a thread with some good pointers to get you started.

But the simpler strategy is just to use the course website.

Thank you very much. I think i can handle it from this point on.