Skip to content Skip to sidebar Skip to footer

Getting Error When Running Python Code On Tensorflow-metal On Macbook Pro M1

I have successfully installed tensorflow-metal on my Macbook pro M1 in a separate environment, but when I run the following sample code: import tensorflow as tf from tensorflow.ker

Solution 1:

This issue is also reported here: https://developer.apple.com/forums/thread/691917

I have seen the same issue myself and still wrapping my head around for a fix. So far one of the things that I found is that some people reported that similar issues are resolved if you use the latest macOS beta: macOS 12.0+, e.g. https://github.com/tensorflow/tensorflow/issues/50196#issuecomment-885031590 . This is following the installation recommendation for tensorflow-metal, mentioned here: https://developer.apple.com/metal/tensorflow-plugin/

Another ad-hoc which I tried and worked for me is to remove (or replace) the Adam optimizer.

Post a Comment for "Getting Error When Running Python Code On Tensorflow-metal On Macbook Pro M1"