MacBook Air: OSX El Capitan
When I run TensorFlow code in terminal (python 3 tfpractice.py), I get a longer than normal waiting time to get back output
You can also compile using bazel with opt arguments:
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
I think you can find something in this discussion: How to compile Tensorflow with SSE4.2 and AVX instructions?
Good luck!