Hi. I am running into this issue whenever I try to run the 4th cell in the notebook from week 1 (as seen in screenshot).
I have tried running the notebook kernel several times on Conda virtual environment as well as on Docker and always get the same result.
Could it be a compatibility issue? For what its worth I am using a MacBook Pro M1.
I tried running the notebook on Google Colab and it works perfectly. Is there a way to fix so I could run it on my computer too?
As you mentioned it works on colab and I also tried on my Mac Intel, it is running fine.
I would suggest, taking each of the lines (modifying for completion) and try it out.
Unfortunately, I do not have access to Mac M1
After some research it looks like TF version 2.4 is M1 compatible. Could you try manually changing the version in requirements.txt from tensorflow==2.3.1 to tensorflow==2.4.1 and let me know if it works? This for the conda environment method since to update the library within the Docker image the setup is more complicated. If you already have the virtual env created you can just activate it and run pip install tensorflow==2.4.1.
Hi @fabioantonini, thanks for your suggestion.
I have tried that, and it did not work on Mac M1.
Then I check Tensorflow’s official document, and figure out pip installation does not support Mac M1 yet. So I guess installing in virtual environment is the only way to use tensorflow for Mac M1 users by now.
Ok, I am back in the game, and still have same problem. I now have MacOS 12.4 and still doesn’t work. M1 has huge problems not just with this particular issue, but I have also noticed in many other issues. I am not happy that deeplearning.ai hasn’t added a note on this lab, that we should not attempt with apple m1 computers. It would save a lot of time if they included this in the notebook. ANYONE WHO HAS APPLE M1 (AT THIS TIME), DO NOT NOT DO THIS LAB LOCALLY.