macbookpro-touch-bar

Getting error when running python code on tensorflow-metal on Macbook pro M1

Getting error when running python code on tensorflow-metal on Macbook pro M1 Question: 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.keras import datasets, layers, models (train_images, train_labels), (test_images, test_labels) = datasets.mnist.load_data() train_images, test_images = train_images …

Total answers: 2