apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.66k stars 308 forks source link

tf_xla_enable_xla_devices not set & AVX2 FMA error #172

Open danielXr opened 3 years ago

danielXr commented 3 years ago

This is the error I get after running a simple tensorflow command: In [3]: import tensorflow as tf In [4]: print(tf.reduce_sum(tf.random.normal([1000, 1000]))) 2021-02-17 08:10:00.365011: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set 2021-02-17 08:10:00.365765: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. tf.Tensor(470.66647, shape=(), dtype=float32)

macbook pro 15inch early 2018 macOS 11.2.1 Python 3.8.7 (install with pyenv) Installed with: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apple/tensorflow_macos/master/scripts/download_and_install.sh)"

dseddah commented 3 years ago

Hey, I have the same error. I scrupulously used the same install command as the above.

mathieucausse commented 3 years ago

same error