apple / tensorflow_macos

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

rebuild TensorFlow with the appropriate compiler flags #158

Open YW-S opened 3 years ago

YW-S commented 3 years ago

I have first installed Anaconda3. Then I install various libraries including Theano, TensorFlow and Keras. I have a problem with TensorFlow when I run a simple testing program. I got the following: "WARNING:tensorflow:From C:\Users\Ah\anaconda3\lib\site-packages\tensorflow\python\compat\v2_compat.py:96: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term 2021-02-07 17:41:33.578016: 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: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 4.0"

How can I solve the problem or rebuild TensorFlow?

For your information, the versions of my various environment are: conda 4.9.2; Python 3.8.5; scipy: 1.6.0; numpy: 1.19.2; matplotlib: 3.3.2; pandas: 1.2.1; statsmodels: 0.12.1; sklearn: 0.23.2; theano 1.0.4; tensorflow: 2.3.0; keras: 2.4.3

anna-tikhonova commented 3 years ago

Thank you for reporting this. The provided wheels have not been configured or built with oneDNN enabled. This message is coming from TensorFlow and we have no control over what gets printed.

shloakr commented 3 years ago

Having the same issue as @YW-S