After I compiled the codes, I got some warnings like this:
W tensorflow/core/platform/cpu_feature_guard.cc:95] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:95] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
So I used --config=opt with bazel. However I got this warning, which seems that opt doesn't make sense.
WARNING: Config values are not defined in any .rc file: opt
Use "-c opt" instead of "--config=opt". (I'm not sure why they aren't treated as equivalent but with the former I don't get that warning.)
Most helpful comment
Use "-c opt" instead of "--config=opt". (I'm not sure why they aren't treated as equivalent but with the former I don't get that warning.)