Solution to Tensorflow on M1 Macbook Pro, error when model fit executes

  1. Reinstall miniforge3 with Python 3.9 version.

Command- conda create --prefix ./env python=3.8 conda activate ./env

2.conda install -c apple tensorflow-deps. 3.python -m pip install tensorflow-macos==2.9 4.python -m pip install tensorflow-metal==0.5.0 5. Run sample script available on https://developer.apple.com/metal/tensorflow-plugin/ This worked for me. Check versions properly.

This solution worked for me on my MacBook M1 Pro / MacOS 13.0.1 The sample script with metal it's 6X faster! Thank you very much again!

Solution to Tensorflow on M1 Macbook Pro, error when model fit executes
 
 
Q