Symbol not found for tensorflow

Hello,

I followed the instructions provided here: https://developer.apple.com/metal/tensorflow-plugin/ and while trying to run the example I am getting following error:

otFoundError: dlopen(/Users/nedimhadzic/venv-metal/lib/python3.11/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 0x0006): Symbol not found: __ZN10tensorflow16TensorShapeProtoC1ERKS0_
  Referenced from: <C62E0AB4-567E-3E14-8F96-9F07A746C4DC> /Users/nedimhadzic/venv-metal/lib/python3.11/site-packages/tensorflow-plugins/libmetal_plugin.dylib
  Expected in:     <FFF31651-3926-3E79-A442-143B7156FB13> /Users/nedimhadzic/venv-metal/lib/python3.11/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so

tensorflow: 2.15.0 tensorlow-metal: 1.0.0 macos: 14.2.1 Intel CPU and AMD Radeon Pro 5500M

Any idea?

Regards, Nedim

For Tensorflow-metal > 1.0.0 Mac intel are not supported ! According to this table you must install Tensorflow==2.1.3

tensorflow tensorflow-metal MacOs features v2.5 v0.1.2 12.0+ Pluggable device v2.6 v0.2.0 12.0+ Variable seq. length RNN v2.7 v0.3.0 12.0+ Custom op support v2.8 v0.4.0 12.0+ RNN perf. improvements v2.9 v0.5.0 12.1+ Distributed training v2.10 v0.6.0 12.1+ v2.11 v0.7.0 12.1+ v2.12 v0.8.0 12.1+ v2.13 v1.0.0 12.1+ FP16 and BF16 support v2.14 v1.1.0 12.1+ Mac Silicon only

I'm having the same problem. MBP 2019 AMD Radeon Pro 5500M 8GB. I checked all of the following combinations, and none works:

tensorflow-macos==2.12.0
tensorflow-metal==0.8.0
tensorflow==2.12.0
tensorflow-metal==0.8.0
tensorflow-macos==2.12.0
tensorflow-metal==1.0.0
tensorflow==2.13.0
tensorflow-metal==1.0.0

as described here https://pypi.org/project/tensorflow-metal/

The following works for me:

  • tensorflow==2.13.0
  • tensorflow-metal==1.0.0
  • python: 3.11.9
  • macOS: 14.5
  • xcode-select: 2408

Intel CPU and AMD Radeon Pro 5300M

Symbol not found for tensorflow
 
 
Q