Skip to content

Instantly share code, notes, and snippets.

@ZhangMenghe
Created February 13, 2019 18:37
Show Gist options
  • Select an option

  • Save ZhangMenghe/7cef2f07e6e7912ceb595ed0a6be5bfd to your computer and use it in GitHub Desktop.

Select an option

Save ZhangMenghe/7cef2f07e6e7912ceb595ed0a6be5bfd to your computer and use it in GitHub Desktop.
[Environment][TF Bug]Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

If you have a GPU, you shouldn't care about AVX support, because most expensive ops will be dispatched on a GPU device (unless explicitly set not to). In this case, you can simply ignore this warning by

# Just disables the warning, doesn't enable AVX/FMA
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

... or by setting export TF_CPP_MIN_LOG_LEVEL=2 if you're on Unix. Tensorflow is working fine anyway, but you won't see these annoying warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment