If you have an Apple M1 or M2 and don’t take advantage of its GPU, you may be missing out! Twitter user Santiago has written instructions to allow TensorFlow to use the GPU on M1 and M3-based Apple computers.

The simplified steps:

  1. Install Homebrew
  2. Download Miniforge3
  3. Install and activate Miniforge3.
  4. Restart your terminal window.
  5. Create and activate a Conda environment
  6. Install TensorFlow, Jupyter, and any libraries you need
  7. Run Jupyter Notebook
  8. Run the code above in one of the cells of the notebook

The GPU should be listed as part of the devices available.

https://twitter.com/svpino/status/1578354491530715136