Hi Folks! I know it's been a year, but I'm having the same problem and reinstalling the virtual environment doesn't help. I'm using an M1 Mac with Monterey. Here's what I do:
Start with no tensorflow installed in the virtual environment.
Install tensorflow-macos:
python -m pip install tensorflow-macos
NOTE: At this point, I can use tensorflow without issue, but it's really really slow. It shows as version 2.11.0
Install the metal hooks:
python -m pip install tensorflow-metal
NOTE: This shows as version 0.8.0
But NOW, when I try to run it, I get the error:
[...]site-packages/tensorflow-plugins/libmetal_plugin.dylib, 0x0006): symbol not found in flat namespace (_TF_GetInputPropertiesList)
In the tensorflow plugin directory is libmetal_plugin_dylib. I can't find any other info about it other than its size is 3,640,696 bytes if that helps narrow down the version.
Any thoughts as to how to get metal TF working? Much appreciated. :)
Follow up: The good news is a simple:
python -m pip uninstall tensorflow-metal
Removed the metal plugin, and now everything runs fine again. So the issue is clearly that we need a new metal plugin compatible with tensorflow-macos?