I have the same problem in my LSTM model on APPLE M2.
I follow the progress of https://developer.apple.com/metal/tensorflow-plugin/. to set up my environment, and the model run extremely slow.
How to fix it?
Also, i got this respond while i running the model:
Failed to get CPU frequency: 0 Hz