It worked well on my m2 mac mini when I used the workaround suggested in another thread: https://forums.developer.apple.com/forums/thread/761529
pip uninstall tensorflow tensorflow-macos tensorflow-metal numpy
pip install tensorflow-macos==2.15 tensorflow-metal
Python 3.9
Keras 2.15.0
tensorflow-macos 2.15.0
tensorflow-metal 1.1.0