Post

Replies

Boosts

Views

Activity

Reply to Tensorflow-metal runs extremely slow
Hello, Based on my observations, tensor flow-metal slows the processing instead of speeding it up on a M1 Pro MacBook. Easy to explain as the GPU's are not optimised for Neural operations and the "normal" processor has two optimised cores for ML. Log from simple program in python: WITH tensor flow-metal plugin Epoch 16/20 1875/1875 [==============================] - 8s 4ms/step - loss: 0.0844 - accuracy: 0.9747 Epoch 17/20 1875/1875 [==============================] - 8s 4ms/step - loss: 0.0818 - accuracy: 0.9756 Epoch 18/20 1875/1875 [==============================] - 8s 4ms/step - loss: 0.0794 - accuracy: 0.9759 (tinyML-env) remco@Remcos-MBP tinyML % pip uninstall tensorflow-metal Found existing installation: tensorflow-metal 0.4.0 So without: Epoch 16/20 1875/1875 [==============================] - 1s 731us/step - loss: 0.0880 - accuracy: 0.9727 Epoch 17/20 1875/1875 [==============================] - 1s 736us/step - loss: 0.0845 - accuracy: 0.9742 Epoch 18/20 1875/1875 [==============================] - 1s 733us/step - loss: 0.0821 - accuracy: 0.9747 Epoch 19/20 1875/1875 [==============================] - 1s 727us/step - loss: 0.0807 - accuracy: 0.9750 Maybe you can try this to.
May ’22