0

I get these warnings while importing tensorflow.

System : Windows 10 64 bit

Python : 3.5.2

Tensorflow-CPU: 1.1.0 Nightly build

2017-04-04 16:59:56.185045: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.185185: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.186551: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.187141: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.187629: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-04-04 16:59:56.188138: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.

Although these are not a problem while running it in python, but the problem arises when I am calling the python script from MATLAB, I have a friend who has done same thing with Theano and he told me you have to reomve all the errors and warnings in order for it to work on MATLAB. I have tried all the solutions available and still could not resolve these warnings.

If some one has answer for this, I would be really grateful

Thank You in advance

WiLL_K
  • 575
  • 1
  • 3
  • 22

1 Answers1

1

if you're building tensorflow from source and your using the highly experimental bazel for windows

You could use the these arguments:

bazel build -c opt --copt=-mavx --copt=-mavx2 \
   --copt=-mfma \
   --copt=-mfpmath=both \ 
   --copt=-msse4.2 \
   --config=cuda -k //tensorflow/tools/pip_package:build_pip_package

remove --config=cuda -k if you're not building with cuda support.

parsethis
  • 7,998
  • 3
  • 29
  • 31
  • I am building it now on my ubuntu machine and the will install the .whl file into windows. I don't know if that will work or not but lets see – WiLL_K Apr 04 '17 at 15:57
  • I tried building the file but it failed so can there be a method I can instruct the interpreter to ignore the warnings completely – WiLL_K Apr 06 '17 at 12:03