I have MacBook with M1 Pro and I'm trying to use tensorflow_decision_forests. I followed instruction and created new conda env with tenserflow-metal (https://developer.apple.com/metal/tensorflow-plugin/), but it doesn't work right away. I had to downgrade library versions to tenserflow-macos==2.9.0 and tensorflow-metal==0.5.0. nNow i am trying to install tensorflow_decision_forests using pip, however this library requires tenserflow-macos~=2.10.0. Has anyone successfully installed this library?
Issue with tensorflow_decision_forests on M1 mac
We have released TF v2.12. Can you make sure your pip is updated ?
python3 -m venv ~/venv-metal
source ~/venv-metal/bin/activate
python -m pip install -U pip
python -m pip install tensorflow-macos==2.10.0
python -m pip install tensorflow-metal
Traceback (most recent call last):
File "/Users/mateusz/pythonProject2/main.py", line 1, in <module>
import tensorflow as tf
File "/Users/mateusz/conda/lib/python3.10/site-packages/tensorflow/__init__.py", line 439, in <module>
_ll.load_library(_plugin_dir)
File "/Users/mateusz/conda/lib/python3.10/site-packages/tensorflow/python/framework/load_library.py", line 151, in load_library
py_tf.TF_LoadLibrary(lib)
tensorflow.python.framework.errors_impl.NotFoundError: dlopen(/Users/mateusz/conda/lib/python3.10/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 0x0006): symbol not found in flat namespace '_TF_GetInputPropertiesList'
Here's all my installed packages:
(/Users/mateusz/conda) mateusz@MBP-Mateusz pythonProject2 % pip freeze
absl-py==1.4.0
astunparse==1.6.3
cachetools==5.3.0
charset-normalizer==3.1.0
flatbuffers==23.3.3
gast==0.4.0
google-auth==2.17.2
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.53.0
h5py==3.8.0
idna==3.4
keras==2.10.0
Keras-Preprocessing==1.1.2
libclang==16.0.0
Markdown==3.4.3
MarkupSafe==2.1.2
numpy==1.24.2
oauthlib==3.2.2
opt-einsum==3.3.0
packaging==23.0
protobuf==3.19.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
requests==2.28.2
requests-oauthlib==1.3.1
rsa==4.9
six==1.16.0
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow-estimator==2.10.0
tensorflow-macos==2.10.0
tensorflow-metal==0.8.0
termcolor==2.2.0
typing_extensions==4.5.0
urllib3==1.26.15
Werkzeug==2.2.3
wrapt==1.15.0
@mateuszm7, you need TF v2.12 with 0.8.0 version.
Going forward we will add a dependency and add documentation of the Version compatibilities.