I have been having this issue for the duration of the entire certificate, so I wanted to bring this up. I can never run the ungraded labs without some cell throwing an error. An example screenshot is attached. Laurence’s output is also attached below. When I try to fix it with the assistance of the built-in Gemini chatbot, it still doesn’t work. It’s weird because Laurence can run it in the videos without any issues. Any tips? Thanks!
Coursera jupyter labs run on tensorflow 2.7.x
Google colab uses tensorflow 2.17 which doesn’t play well with code written for 2.7.x (see colab output below)
But the error above happened in the google colab notebook, not the jupyter notebook. All of the 2nd course assignments were administered through Google Colab. Is there a way to resolve this? I would really like to be able to play with the ungraded labs on my own. Thanks!
Hi Achintya! Thank you for reporting this! For this lab, please downgrade tensorflow to v2.15 if you want to keep using Colab. You can run this in the first cell.
TF2.17 uses Keras 3 by default which can indeed cause bugs if the code expects Keras 2. We’re working on patching the labs so other learners won’t run into the same issue. Thank you!