bitbionic / keras-to-tensorflow

A tutorial on running Keras models in Tensorflow
MIT License
111 stars 67 forks source link

error: this TensorFlow binary was not compiled to use: AVX2 FMA #2

Closed archcra closed 6 years ago

archcra commented 6 years ago

When I use the k2tf_convert.py script: python k2tf_convert.py -m 'version0320.h5' -n 1

I got error: 2018-07-20 09:54:38.200577: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

I tried on two machines(VM on DO & Mac), same error. What should I do now?

Thank you very much!

bitbionic commented 6 years ago

That should be a warning, not an error. It's a pretty standard warning in TF from a generic TF compiled binary. You can get rid of that warning if you build TF yourself and supply the AVX2 flag. See https://github.com/tensorflow/tensorflow/issues/8037 for a similar discussion on the TF GitHub. Good luck and thanks for checking out the tutorial.

archcra commented 6 years ago

Thank a lot!