I have followed all instructions in this tutorial to install Tensorflow-MacOS and Tensorflow Metal for my Apple 16GB M1 Mac mini (2020) running Big Sur 11.5.1.
All installations completed without error, but I am still getting the following traceback when trying to use Tensorflow:
Traceback (most recent call last):
File "train_model.py", line 3, in <module>
import tensorflow as tf
File "/Users/thesis/miniforge3/envs/thesis_env/lib/python3.8/site-packages/tensorflow/__init__.py", line 440, in <module>
_ll.load_library(_plugin_dir)
File "/Users/thesis/miniforge3/envs/thesis_env/lib/python3.8/site-packages/tensorflow/python/framework/load_library.py", line 153, in load_library
py_tf.TF_LoadLibrary(lib)
tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/Users/thesis/miniforge3/envs/thesis_env/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 6): Symbol not found: _TF_AllocateOutput
Referenced from: /Users/thesis/miniforge3/envs/thesis_env/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib
Expected in: flat namespace
I have seen similar issues reported related to the "Symbol not found: " portion of the traceback, but the answer given there (basically, to double-check that the versions of TensorflowMacOS and the Tensorflow Metal plugin match) does not apply to me - both are current and were installed today.
If I run the terminal commands for installation again, I get messages informing me that all requirements are already satisfied.
A fix would be appreciated - I need to begin training a DL model for my graduate thesis project, and I purchased the computer in part for this particular project.